[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kmouth/noqt3support] /: Fix usage of KIconLoader in phraselist to get speak icon.
From:       Jeremy Whiting <jpwhiting () kde ! org>
Date:       2015-05-01 4:46:47
Message-ID: E1Yo2qd-0007Wy-UP () scm ! kde ! org
[Download RAW message or body]

Git commit 0c68d601dfa4a6858fb418799eae1763c6d8841a by Jeremy Whiting.
Committed on 01/05/2015 at 01:31.
Pushed by whiting into branch 'noqt3support'.

Fix usage of KIconLoader in phraselist to get speak icon.

M  +1    -1    phraselist.cpp

http://commits.kde.org/kmouth/0c68d601dfa4a6858fb418799eae1763c6d8841a

diff --git a/phraselist.cpp b/phraselist.cpp
index 996fafc..1f9db18 100644
--- a/phraselist.cpp
+++ b/phraselist.cpp
@@ -81,7 +81,7 @@ PhraseList::PhraseList(QWidget *parent, const char *name) : QWidget(parent) {
    rowLayout->addWidget(lineEdit);
    lineEdit->setFocus();
 
-   QIcon icon = KIconLoader::global()->loadIconSet(QLatin1String( "speak" ), KIconLoader::Small);
+   QIcon icon = KIcon(QLatin1String( "speak" ));
    speakButton = new QPushButton (icon, i18n("&Speak"), this);
    speakButton->setFocusPolicy(Qt::NoFocus);
    speakButton->setAutoDefault(false);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic