From 03bb2a73d30e9d138d85dafe5b0c37296feb5e9c Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Tue, 6 May 2014 18:45:03 +0200 Subject: 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. --- src/server/sessionnamewindow/sessionnamewindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server/sessionnamewindow') 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)); } -- cgit v1.2.3-55-g7522