Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
56a968c8
Commit
56a968c8
authored
Oct 10, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Minor style change on Rtmon widget.
parent
f1d00be2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
xtt/lib/cow/qt/cow_rtmon_qt.cqt
xtt/lib/cow/qt/cow_rtmon_qt.cqt
+10
-6
xtt/lib/cow/qt/cow_rtmon_qt.h
xtt/lib/cow/qt/cow_rtmon_qt.h
+2
-0
No files found.
xtt/lib/cow/qt/cow_rtmon_qt.cqt
View file @
56a968c8
...
@@ -45,7 +45,6 @@
...
@@ -45,7 +45,6 @@
#include "cow_statusmon_nodelistnav_qt.h"
#include "cow_statusmon_nodelistnav_qt.h"
#include "cow_wow_qt.h"
#include "cow_wow_qt.h"
#include <QHBoxLayout>
#include <QMenu>
#include <QMenu>
#include <QMenuBar>
#include <QMenuBar>
#include <QPalette>
#include <QPalette>
...
@@ -90,7 +89,7 @@ RtMonQt::RtMonQt(void* rtmon_parent_ctx, QWidget* rtmon_parent_wid,
...
@@ -90,7 +89,7 @@ RtMonQt::RtMonQt(void* rtmon_parent_ctx, QWidget* rtmon_parent_wid,
toplevel = new RtMonQtWidget(this, rtmon_parent_wid);
toplevel = new RtMonQtWidget(this, rtmon_parent_wid);
toplevel->setToolTip(fl("cow_rtmon widget"));
toplevel->setToolTip(fl("cow_rtmon widget"));
toplevel->setMinimum
Size(480,
340);
toplevel->setMinimum
Height(
340);
toplevel->setWindowTitle(fl(title));
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
@@ -144,6 +143,7 @@ RtMonQt::RtMonQt(void* rtmon_parent_ctx, QWidget* rtmon_parent_wid,
...
@@ -144,6 +143,7 @@ RtMonQt::RtMonQt(void* rtmon_parent_ctx, QWidget* rtmon_parent_wid,
pwr_tFileName fname;
pwr_tFileName fname;
dcli_translate_filename(fname, "$pwr_exe/pwr_logofully.png");
dcli_translate_filename(fname, "$pwr_exe/pwr_logofully.png");
bbox_image = new_image_label(toplevel, fname);
bbox_image = new_image_label(toplevel, fname);
bbox_image->setVisible(false);
dcli_translate_filename(fname, "$pwr_exe/pwr_logofullg.png");
dcli_translate_filename(fname, "$pwr_exe/pwr_logofullg.png");
bbox_image_gray = new_image_label(toplevel, fname);
bbox_image_gray = new_image_label(toplevel, fname);
...
@@ -164,8 +164,7 @@ RtMonQt::RtMonQt(void* rtmon_parent_ctx, QWidget* rtmon_parent_wid,
...
@@ -164,8 +164,7 @@ RtMonQt::RtMonQt(void* rtmon_parent_ctx, QWidget* rtmon_parent_wid,
lbox->addWidget(bbox_label);
lbox->addWidget(bbox_label);
addButton(toplevel, lbox, "Reset Runtime", SLOT(activate_reset()));
addButton(toplevel, lbox, "Reset Runtime", SLOT(activate_reset()));
QHBoxLayout* bbox_vbox = new QHBoxLayout();
bbox_vbox = new QHBoxLayout();
bbox_vbox->addWidget(bbox_image);
bbox_vbox->addWidget(bbox_image_gray);
bbox_vbox->addWidget(bbox_image_gray);
bbox_vbox->addLayout(bbox);
bbox_vbox->addLayout(bbox);
bbox_vbox->addLayout(lbox);
bbox_vbox->addLayout(lbox);
...
@@ -178,8 +177,6 @@ RtMonQt::RtMonQt(void* rtmon_parent_ctx, QWidget* rtmon_parent_wid,
...
@@ -178,8 +177,6 @@ RtMonQt::RtMonQt(void* rtmon_parent_ctx, QWidget* rtmon_parent_wid,
toplevel->setLayout(vbox);
toplevel->setLayout(vbox);
toplevel->show();
toplevel->show();
bbox_image->setVisible(false);
wow = new CoWowQt(toplevel);
wow = new CoWowQt(toplevel);
timerid = new QTimer();
timerid = new QTimer();
...
@@ -209,8 +206,11 @@ void RtMonQtWidget::rtmon_scan()
...
@@ -209,8 +206,11 @@ void RtMonQtWidget::rtmon_scan()
rtmon->file_xtt->setEnabled(false);
rtmon->file_xtt->setEnabled(false);
rtmon->file_op->setEnabled(false);
rtmon->file_op->setEnabled(false);
rtmon->bbox_vbox->insertWidget(0, rtmon->bbox_image_gray);
rtmon->bbox_vbox->removeWidget(rtmon->bbox_image);
rtmon->bbox_image->setVisible(false);
rtmon->bbox_image->setVisible(false);
rtmon->bbox_image_gray->setVisible(true);
rtmon->bbox_image_gray->setVisible(true);
rtmon->bbox_vbox->update();
} else {
} else {
if (((sts & 7) == 2) || ((sts & 7) == 4)) {
if (((sts & 7) == 2) || ((sts & 7) == 4)) {
strcpy(color_name, "Red");
strcpy(color_name, "Red");
...
@@ -229,8 +229,12 @@ void RtMonQtWidget::rtmon_scan()
...
@@ -229,8 +229,12 @@ void RtMonQtWidget::rtmon_scan()
rtmon->tools_op->setEnabled(true);
rtmon->tools_op->setEnabled(true);
rtmon->file_xtt->setEnabled(true);
rtmon->file_xtt->setEnabled(true);
rtmon->file_op->setEnabled(true);
rtmon->file_op->setEnabled(true);
rtmon->bbox_vbox->insertWidget(0, rtmon->bbox_image);
rtmon->bbox_vbox->removeWidget(rtmon->bbox_image_gray);
rtmon->bbox_image->setVisible(true);
rtmon->bbox_image->setVisible(true);
rtmon->bbox_image_gray->setVisible(false);
rtmon->bbox_image_gray->setVisible(false);
rtmon->bbox_vbox->update();
}
}
QPalette pal;
QPalette pal;
...
...
xtt/lib/cow/qt/cow_rtmon_qt.h
View file @
56a968c8
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
#include "cow_rtmon.h"
#include "cow_rtmon.h"
#include <QAction>
#include <QAction>
#include <QHBoxLayout>
#include <QLabel>
#include <QLabel>
#include <QWidget>
#include <QWidget>
...
@@ -60,6 +61,7 @@ public:
...
@@ -60,6 +61,7 @@ public:
QWidget
*
bbox_stop
;
QWidget
*
bbox_stop
;
QLabel
*
bbox_image
;
QLabel
*
bbox_image
;
QLabel
*
bbox_image_gray
;
QLabel
*
bbox_image_gray
;
QHBoxLayout
*
bbox_vbox
;
QAction
*
tools_xtt
;
QAction
*
tools_xtt
;
QAction
*
tools_op
;
QAction
*
tools_op
;
QAction
*
file_xtt
;
QAction
*
file_xtt
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment