mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Use confirm as the default button
This commit is contained in:
parent
1b7816f7ca
commit
d4ce7a9dda
3 changed files with 6 additions and 6 deletions
|
@ -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_);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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_);
|
||||
|
|
Loading…
Reference in a new issue