Changeset View
Changeset View
Standalone View
Standalone View
src/runtime/kwalletd/kbetterthankdialog.cpp
Show All 11 Lines | 1 | /* This file is part of the KDE libraries | |||
---|---|---|---|---|---|
12 | Lesser General Public License for more details. | 12 | Lesser General Public License for more details. | ||
13 | 13 | | |||
14 | You should have received a copy of the GNU Lesser General Public | 14 | You should have received a copy of the GNU Lesser General Public | ||
15 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 15 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #include "kbetterthankdialog.h" | 18 | #include "kbetterthankdialog.h" | ||
19 | #include <QIcon> | 19 | #include <QIcon> | ||
20 | #include <KIconLoader> | | |||
21 | 20 | | |||
22 | KBetterThanKDialog::KBetterThanKDialog(QWidget *parent) | 21 | KBetterThanKDialog::KBetterThanKDialog(QWidget *parent) | ||
23 | : QDialog(parent) | 22 | : QDialog(parent) | ||
24 | { | 23 | { | ||
25 | setupUi(this); | 24 | setupUi(this); | ||
26 | connect(_allowOnce, SIGNAL(clicked()), this, SLOT(allowOnceClicked())); | 25 | connect(_allowOnce, SIGNAL(clicked()), this, SLOT(allowOnceClicked())); | ||
27 | connect(_allowAlways, SIGNAL(clicked()), this, SLOT(allowAlwaysClicked())); | 26 | connect(_allowAlways, SIGNAL(clicked()), this, SLOT(allowAlwaysClicked())); | ||
28 | connect(_deny, SIGNAL(clicked()), this, SLOT(denyClicked())); | 27 | connect(_deny, SIGNAL(clicked()), this, SLOT(denyClicked())); | ||
29 | connect(_denyForever, SIGNAL(clicked()), this, SLOT(denyForeverClicked())); | 28 | connect(_denyForever, SIGNAL(clicked()), this, SLOT(denyForeverClicked())); | ||
30 | 29 | | |||
31 | init(); | 30 | init(); | ||
32 | } | 31 | } | ||
33 | 32 | | |||
34 | void KBetterThanKDialog::init() | 33 | void KBetterThanKDialog::init() | ||
35 | { | 34 | { | ||
36 | _allowOnce->setIcon(KDE::icon(QStringLiteral("dialog-ok"))); | 35 | _allowOnce->setIcon(QIcon::fromTheme(QStringLiteral("dialog-ok"))); | ||
37 | _allowAlways->setIcon(KDE::icon(QStringLiteral("dialog-ok"))); | 36 | _allowAlways->setIcon(QIcon::fromTheme(QStringLiteral("dialog-ok"))); | ||
38 | _deny->setIcon(KDE::icon(QStringLiteral("dialog-cancel"))); | 37 | _deny->setIcon(QIcon::fromTheme(QStringLiteral("dialog-cancel"))); | ||
39 | _denyForever->setIcon(KDE::icon(QStringLiteral("dialog-cancel"))); | 38 | _denyForever->setIcon(QIcon::fromTheme(QStringLiteral("dialog-cancel"))); | ||
40 | 39 | | |||
41 | _allowOnce->setFocus(); | 40 | _allowOnce->setFocus(); | ||
42 | } | 41 | } | ||
43 | 42 | | |||
44 | void KBetterThanKDialog::setLabel(const QString &label) | 43 | void KBetterThanKDialog::setLabel(const QString &label) | ||
45 | { | 44 | { | ||
46 | _label->setText(label); | 45 | _label->setText(label); | ||
47 | } | 46 | } | ||
Show All 32 Lines |