Use confirm as the default button
This commit is contained in:
parent
1b7816f7ca
commit
d4ce7a9dda
|
@ -36,8 +36,8 @@ CreateRoom::CreateRoom(QWidget *parent)
|
|||
buttonLayout->setSpacing(15);
|
||||
|
||||
confirmBtn_ = new QPushButton(tr("Create room"), this);
|
||||
confirmBtn_->setDefault(true);
|
||||
cancelBtn_ = new QPushButton(tr("Cancel"), this);
|
||||
cancelBtn_->setDefault(true);
|
||||
|
||||
buttonLayout->addStretch(1);
|
||||
buttonLayout->addWidget(cancelBtn_);
|
||||
|
|
|
@ -37,8 +37,8 @@ InviteUsers::InviteUsers(QWidget *parent)
|
|||
buttonLayout->setMargin(0);
|
||||
|
||||
confirmBtn_ = new QPushButton("Invite", this);
|
||||
confirmBtn_->setDefault(true);
|
||||
cancelBtn_ = new QPushButton(tr("Cancel"), this);
|
||||
cancelBtn_->setDefault(true);
|
||||
|
||||
buttonLayout->addStretch(1);
|
||||
buttonLayout->setSpacing(15);
|
||||
|
|
|
@ -30,8 +30,8 @@ JoinRoom::JoinRoom(QWidget *parent)
|
|||
buttonLayout->setSpacing(15);
|
||||
|
||||
confirmBtn_ = new QPushButton(tr("Join"), this);
|
||||
confirmBtn_->setDefault(true);
|
||||
cancelBtn_ = new QPushButton(tr("Cancel"), this);
|
||||
cancelBtn_->setDefault(true);
|
||||
|
||||
buttonLayout->addStretch(1);
|
||||
buttonLayout->addWidget(cancelBtn_);
|
||||
|
|
Loading…
Reference in New Issue