diff options
Diffstat (limited to 'src/client/connectwindow/connectwindow.cpp')
-rw-r--r-- | src/client/connectwindow/connectwindow.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/client/connectwindow/connectwindow.cpp b/src/client/connectwindow/connectwindow.cpp index b84f22c..8631b43 100644 --- a/src/client/connectwindow/connectwindow.cpp +++ b/src/client/connectwindow/connectwindow.cpp @@ -32,7 +32,7 @@ ConnectWindow::ConnectWindow(QWidget *parent) : QWidget(parent) _ui->setupUi(this); // Set window properties - setWindowFlags(Qt::WindowStaysOnTopHint); + setWindowFlags(Qt::WindowStaysOnTopHint | Qt::Tool); // Set page 0 as default _ui->stackedWidget->setCurrentIndex(0); @@ -142,12 +142,21 @@ void ConnectWindow::closeEvent(QCloseEvent *e) this->hide(); } +void ConnectWindow::doShow() +{ + show(); + activateWindow(); + raise(); +} + /***************************************************************************//** * Gives the keyboard input focus to the input line. * @param event */ void ConnectWindow::showEvent(QShowEvent* event) { + activateWindow(); + raise(); _ui->lineEditName->setFocus(); } |