Commit 2d14057e authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: Made the Warranty popup the topmost widget.

parent bc033947
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
#include <QDesktopWidget> #include <QDesktopWidget>
#include <QInputDialog> #include <QInputDialog>
#include <QMenuBar> #include <QMenuBar>
#include <QTimer>
#include <QVBoxLayout> #include <QVBoxLayout>
void XttQt::hotkey_Command(char* arg, void* userdata) void XttQt::hotkey_Command(char* arg, void* userdata)
...@@ -773,11 +774,12 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts) ...@@ -773,11 +774,12 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts)
((CoWowQt*)wow)->SetParent(((CoLoginQt*)xnav->cologin)->toplevel); ((CoWowQt*)wow)->SetParent(((CoLoginQt*)xnav->cologin)->toplevel);
} }
wow->DisplayWarranty();
if (xnav->cologin) { if (xnav->cologin) {
((CoWowQt*)wow)->SetParent(toplevel); ((CoWowQt*)wow)->SetParent(toplevel);
} }
// Use timeout to get in on the top of the display
QTimer::singleShot(100, ((CoWowQt*)wow)->object, SLOT(DisplayWarranty()));
} }
timerid = wow->timer_new(); timerid = wow->timer_new();
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
#include <QCloseEvent> #include <QCloseEvent>
#include <QDesktopWidget> #include <QDesktopWidget>
#include <QPushButton> #include <QPushButton>
#include <QTimer>
#define OP_HEIGHT_MIN 90 #define OP_HEIGHT_MIN 90
#define OP_HEIGHT_INC 20 #define OP_HEIGHT_INC 20
...@@ -475,7 +476,8 @@ OpQt::OpQt(void* op_parent_ctx, char* opplace, pwr_tStatus* status) ...@@ -475,7 +476,8 @@ OpQt::OpQt(void* op_parent_ctx, char* opplace, pwr_tStatus* status)
wow = new CoWowQt(toplevel); wow = new CoWowQt(toplevel);
sup_timerid = wow->timer_new(); sup_timerid = wow->timer_new();
wow->DisplayWarranty(); // Use timeout to get in on the top of the display
QTimer::singleShot(100, ((CoWowQt*)wow)->object, SLOT(DisplayWarranty()));
if (!(layout_mask & pwr_mOpWindLayoutMask_HideStatusBar)) { if (!(layout_mask & pwr_mOpWindLayoutMask_HideStatusBar)) {
sup_scan(this); sup_scan(this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment