diff options
author | Manuel Schneider | 2014-05-06 18:45:03 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-05-06 18:45:03 +0200 |
commit | 03bb2a73d30e9d138d85dafe5b0c37296feb5e9c (patch) | |
tree | a8abe332c737bc6d7cf4fa11b614dcdeca53eaba /src/server/sessionnamewindow/sessionnamewindow.cpp | |
parent | Clipped the green checkmark's white space. (diff) | |
download | pvs2-03bb2a73d30e9d138d85dafe5b0c37296feb5e9c.tar.gz pvs2-03bb2a73d30e9d138d85dafe5b0c37296feb5e9c.tar.xz pvs2-03bb2a73d30e9d138d85dafe5b0c37296feb5e9c.zip |
Changes the ConnectionWidows gui to a relative layout. Added a stacked widget to
change between checkmark and the rest. Changed the non expressive names of ui
elements.
Diffstat (limited to 'src/server/sessionnamewindow/sessionnamewindow.cpp')
-rw-r--r-- | src/server/sessionnamewindow/sessionnamewindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/sessionnamewindow/sessionnamewindow.cpp b/src/server/sessionnamewindow/sessionnamewindow.cpp index 01ac910..f0ca532 100644 --- a/src/server/sessionnamewindow/sessionnamewindow.cpp +++ b/src/server/sessionnamewindow/sessionnamewindow.cpp @@ -28,7 +28,7 @@ SessionNameWindow::SessionNameWindow(QWidget *parent) : connect(ui->bboxOkCancel, SIGNAL(accepted()), this, SLOT(onOkClicked())); connect(ui->bboxOkCancel, SIGNAL(rejected()), this, SLOT(close())); connect(ui->cmdRandom, SIGNAL(clicked(bool)), this, SLOT(onGenerateRandomName())); - ui->txtName->setFocus(); + ui->lineEditName->setFocus(); } SessionNameWindow::~SessionNameWindow() @@ -38,7 +38,7 @@ SessionNameWindow::~SessionNameWindow() void SessionNameWindow::show(const QString& name) { - ui->txtName->setText(name); + ui->lineEditName->setText(name); this->showNormal(); } @@ -58,12 +58,12 @@ void SessionNameWindow::closeEvent(QCloseEvent *e) void SessionNameWindow::onOkClicked() { - Global::setSessionName(ui->txtName->text()); + Global::setSessionName(ui->lineEditName->text()); emit updateSessionName(); this->hide(); } void SessionNameWindow::onGenerateRandomName() { - ui->txtName->setText(QString::number(qrand() % 9000 + 1000)); + ui->lineEditName->setText(QString::number(qrand() % 9000 + 1000)); } |