From a560147d70d7ede66e0d012e5de97867b5c29991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 30 Sep 2013 15:09:07 +0200 Subject: [PATCH] [kcmtabbox] KIcon -> QIcon::fromTheme --- kcmkwin/kwintabbox/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kcmkwin/kwintabbox/main.cpp b/kcmkwin/kwintabbox/main.cpp index 25b67fb765..c8c61d50c8 100644 --- a/kcmkwin/kwintabbox/main.cpp +++ b/kcmkwin/kwintabbox/main.cpp @@ -106,8 +106,8 @@ KWinTabBoxConfig::KWinTabBoxConfig(QWidget* parent, const QVariantList& args) initLayoutLists(); KWinTabBoxConfigForm *ui[2] = { m_primaryTabBoxUi, m_alternativeTabBoxUi }; for (int i = 0; i < 2; ++i) { - ui[i]->effectConfigButton->setIcon(KIcon("view-preview")); - ui[i]->ghns->setIcon(KIcon("get-hot-new-stuff")); + ui[i]->effectConfigButton->setIcon(QIcon::fromTheme("view-preview")); + ui[i]->ghns->setIcon(QIcon::fromTheme("get-hot-new-stuff")); connect(ui[i]->highlightWindowCheck, SIGNAL(clicked(bool)), SLOT(changed())); connect(ui[i]->showTabBox, SIGNAL(clicked(bool)), SLOT(tabBoxToggled(bool))); @@ -470,7 +470,7 @@ void KWinTabBoxConfig::updateConfigFromUi(const KWin::KWinTabBoxConfigForm* ui, void KWinTabBoxConfig::effectSelectionChanged(int index) { CHECK_CURRENT_TABBOX_UI - ui->effectConfigButton->setIcon(KIcon(index < Layout ? "configure" : "view-preview")); + ui->effectConfigButton->setIcon(QIcon::fromTheme(index < Layout ? "configure" : "view-preview")); if (!ui->showTabBox->isChecked()) return; ui->highlightWindowCheck->setEnabled(index >= Layout);