Use confirm as the default button

This commit is contained in:
Konstantinos Sideris 2018-09-20 08:52:31 +03:00
parent 1b7816f7ca
commit d4ce7a9dda
3 changed files with 6 additions and 6 deletions

View file

@ -36,8 +36,8 @@ CreateRoom::CreateRoom(QWidget *parent)
buttonLayout->setSpacing(15);
confirmBtn_ = new QPushButton(tr("Create room"), this);
cancelBtn_ = new QPushButton(tr("Cancel"), this);
cancelBtn_->setDefault(true);
confirmBtn_->setDefault(true);
cancelBtn_ = new QPushButton(tr("Cancel"), this);
buttonLayout->addStretch(1);
buttonLayout->addWidget(cancelBtn_);

View file

@ -37,8 +37,8 @@ InviteUsers::InviteUsers(QWidget *parent)
buttonLayout->setMargin(0);
confirmBtn_ = new QPushButton("Invite", this);
cancelBtn_ = new QPushButton(tr("Cancel"), this);
cancelBtn_->setDefault(true);
confirmBtn_->setDefault(true);
cancelBtn_ = new QPushButton(tr("Cancel"), this);
buttonLayout->addStretch(1);
buttonLayout->setSpacing(15);

View file

@ -30,8 +30,8 @@ JoinRoom::JoinRoom(QWidget *parent)
buttonLayout->setSpacing(15);
confirmBtn_ = new QPushButton(tr("Join"), this);
cancelBtn_ = new QPushButton(tr("Cancel"), this);
cancelBtn_->setDefault(true);
confirmBtn_->setDefault(true);
cancelBtn_ = new QPushButton(tr("Cancel"), this);
buttonLayout->addStretch(1);
buttonLayout->addWidget(cancelBtn_);