summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2015-02-03 17:10:24 +0100
committerSimon Rettberg2015-02-03 17:10:24 +0100
commit500af8ed3da3c18f3e652841ca43c7462a3e5772 (patch)
tree5827642b416e7df2e96aada507a4c3140ea0137d /src
parentAdd Dell option. Cleanup code. (diff)
downloadprintergui-500af8ed3da3c18f3e652841ca43c7462a3e5772.tar.gz
printergui-500af8ed3da3c18f3e652841ca43c7462a3e5772.tar.xz
printergui-500af8ed3da3c18f3e652841ca43c7462a3e5772.zip
Bring windows to top more agressively
Diffstat (limited to 'src')
-rw-r--r--src/maingui/printergui.cpp4
-rw-r--r--src/pwgui/pwgui.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/maingui/printergui.cpp b/src/maingui/printergui.cpp
index bbe58c0..2724776 100644
--- a/src/maingui/printergui.cpp
+++ b/src/maingui/printergui.cpp
@@ -100,6 +100,10 @@ void PrinterGui::initializeUI()
ui->comboBoxSides->hide();
ui->label_color->hide();
ui->label_duplex->hide();
+ this->show();
+ this->showNormal();
+ this->raise();
+ this->activateWindow();
}
diff --git a/src/pwgui/pwgui.cpp b/src/pwgui/pwgui.cpp
index ace70e2..b9473aa 100644
--- a/src/pwgui/pwgui.cpp
+++ b/src/pwgui/pwgui.cpp
@@ -47,6 +47,10 @@ void PwGui::initializeUI(char *user)
QRect desktopRect = QApplication::desktop()->screenGeometry(this);
this->move( desktopRect.width()/2-this->width()/2,
desktopRect.height()/2-this->height()/2 );
+ this->show();
+ this->showNormal();
+ this->raise();
+ this->activateWindow();
}
// ____________________________________________________________________________