mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| aad63e8dc6 |
@@ -128,11 +128,17 @@ Setup cmake and build
|
|||||||
Copy the seer binary to your bin directory of choice. One of the below. May need
|
Copy the seer binary to your bin directory of choice. One of the below. May need
|
||||||
root access.
|
root access.
|
||||||
|
|
||||||
|
% cd seer/src/build
|
||||||
% cp seer ~/bin/seer
|
% cp seer ~/bin/seer
|
||||||
% cp seer /usr/local/bin/seer
|
% cp seer /usr/local/bin/seer
|
||||||
% cp seer /usr/bin/seer
|
% cp seer /usr/bin/seer
|
||||||
% rehash
|
% rehash
|
||||||
|
|
||||||
|
Or use the 'install' make target. Which will usually copy it to /usr/local/bin.
|
||||||
|
May need root access.
|
||||||
|
|
||||||
|
% cd seer/src/build
|
||||||
|
% sudo make install
|
||||||
|
|
||||||
Support/Contact
|
Support/Contact
|
||||||
===============
|
===============
|
||||||
|
|||||||
@@ -117,5 +117,7 @@ endif()
|
|||||||
|
|
||||||
add_executable(${PROJECT_NAME} ${SYSTEM_TYPE} ${SOURCE_FILES})
|
add_executable(${PROJECT_NAME} ${SYSTEM_TYPE} ${SOURCE_FILES})
|
||||||
|
|
||||||
|
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::Gui Qt5::Core Qt5::PrintSupport)
|
target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::Gui Qt5::Core Qt5::PrintSupport)
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ SeerDebugDialog::SeerDebugDialog (QWidget* parent) : QDialog(parent) {
|
|||||||
// Set up the UI.
|
// Set up the UI.
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
attachProgramPidLineEdit->setMaximumWidth(fontMetrics().width("888888888888888"));
|
attachProgramPidLineEdit->setMaximumWidth(fontMetrics().horizontalAdvance("888888888888888"));
|
||||||
connectProgramHostPortLineEdit->setMaximumWidth(fontMetrics().width("XXXXXXXXXXXXXXX"));
|
connectProgramHostPortLineEdit->setMaximumWidth(fontMetrics().horizontalAdvance("XXXXXXXXXXXXXXX"));
|
||||||
|
|
||||||
_runModeButtonGroup = new QButtonGroup(this); // ID's 1 thru 4.
|
_runModeButtonGroup = new QButtonGroup(this); // ID's 1 thru 4.
|
||||||
_runModeButtonGroup->addButton(runProgramRadioButton, 1); // "run" or "start". See breakInMain().
|
_runModeButtonGroup->addButton(runProgramRadioButton, 1); // "run" or "start". See breakInMain().
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ SeerEditorWidget::SeerEditorWidget(QWidget *parent) : QWidget(parent) {
|
|||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
// Set the widgets.
|
// Set the widgets.
|
||||||
int space = fontMetrics().width("Go to line ##") + 5;
|
int space = fontMetrics().horizontalAdvance("Go to line ##") + 5;
|
||||||
|
|
||||||
lineNumberLineEdit->setMaximumWidth(space);
|
lineNumberLineEdit->setMaximumWidth(space);
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
#include <QtGui/QIcon>
|
#include <QtGui/QIcon>
|
||||||
#include <QtGui/QRadialGradient>
|
#include <QtGui/QRadialGradient>
|
||||||
#include <QtGui/QHelpEvent>
|
#include <QtGui/QHelpEvent>
|
||||||
|
#include <QtGui/QPainterPath>
|
||||||
#include <QtWidgets/QScrollBar>
|
#include <QtWidgets/QScrollBar>
|
||||||
#include <QtWidgets/QMenu>
|
#include <QtWidgets/QMenu>
|
||||||
#include <QtWidgets/QAction>
|
#include <QtWidgets/QAction>
|
||||||
@@ -114,10 +115,7 @@ int SeerEditorWidgetSourceArea::lineNumberAreaWidth () {
|
|||||||
digits++;
|
digits++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use this when QT5.11 is installed.
|
int space = 3 + fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits;
|
||||||
//int space = 3 + fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits;
|
|
||||||
//
|
|
||||||
int space = 3 + fontMetrics().width(QLatin1Char('9')) * digits;
|
|
||||||
|
|
||||||
return space;
|
return space;
|
||||||
}
|
}
|
||||||
@@ -313,8 +311,8 @@ void SeerEditorWidgetSourceArea::miniMapAreaPaintEvent (QPaintEvent* event) {
|
|||||||
|
|
||||||
while (block.isValid()) {
|
while (block.isValid()) {
|
||||||
|
|
||||||
if (fm.width(block.text()) > pixmapWidth) {
|
if (fm.horizontalAdvance(block.text()) > pixmapWidth) {
|
||||||
pixmapWidth = fm.width(block.text());
|
pixmapWidth = fm.horizontalAdvance(block.text());
|
||||||
}
|
}
|
||||||
|
|
||||||
pixmapHeight += fm.height();
|
pixmapHeight += fm.height();
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ int main (int argc, char* argv[]) {
|
|||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
QCoreApplication::setApplicationName("Seer");
|
QCoreApplication::setApplicationName("Seer");
|
||||||
QCoreApplication::setApplicationVersion("1.0.1 - Ernie Pasveer (c)2021");
|
QCoreApplication::setApplicationVersion("1.0.2 - Ernie Pasveer (c)2021");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Parse arguments.
|
// Parse arguments.
|
||||||
|
|||||||
Reference in New Issue
Block a user