mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
plasma: default to yes for the lockout applet actions in its dialog
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1e7586daf2
commit
ebefe03351
1 changed files with 5 additions and 2 deletions
|
@ -114,7 +114,7 @@ LockoutDialog::LockoutDialog(const QString &icon, const QString &title,
|
|||
m_yesbutton->setIcon(KIcon("dialog-ok"));
|
||||
m_yesbutton->setText(i18n("Yes"));
|
||||
connect(
|
||||
m_yesbutton, SIGNAL(clicked()),
|
||||
m_yesbutton, SIGNAL(pressed()),
|
||||
this, SLOT(slotYes())
|
||||
);
|
||||
m_layout->addItem(m_yesbutton, 3, 0, 1, 1);
|
||||
|
@ -122,7 +122,7 @@ LockoutDialog::LockoutDialog(const QString &icon, const QString &title,
|
|||
m_nobutton->setIcon(KIcon("dialog-cancel"));
|
||||
m_nobutton->setText(i18n("No"));
|
||||
connect(
|
||||
m_nobutton, SIGNAL(clicked()),
|
||||
m_nobutton, SIGNAL(pressed()),
|
||||
this, SLOT(slotNo())
|
||||
);
|
||||
m_layout->addItem(m_nobutton, 3, 1, 1, 1);
|
||||
|
@ -131,6 +131,9 @@ LockoutDialog::LockoutDialog(const QString &icon, const QString &title,
|
|||
m_scene->addItem(m_widget);
|
||||
setGraphicsWidget(m_widget);
|
||||
|
||||
// default to yes like KDialog defaults to KDialog::Ok
|
||||
m_yesbutton->setFocus();
|
||||
|
||||
m_eventloop = new QEventLoop(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue