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

List:       kde-commits
Subject:    extragear/base/PolicyKit-kde/manager
From:       Daniel Nicoletti <dantti85-kde () yahoo ! com ! br>
Date:       2009-01-26 14:36:56
Message-ID: 1232980616.521987.4883.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 916946 by dantti:

adding an icon the the key too small

 M  +12 -2     AuthDialog.cpp  


--- trunk/extragear/base/PolicyKit-kde/manager/AuthDialog.cpp #916945:916946
@@ -49,11 +49,21 @@
         setCaption(actionMessage);
     }
 
-    QPixmap icon = KIconLoader::global()->loadIcon(polkit_policy_file_entry_get_action_icon_name(entry),
 +    QString actionIconName(polkit_policy_file_entry_get_action_icon_name(entry));
+    QPixmap icon = KIconLoader::global()->loadIcon(actionIconName,
                    KIconLoader::NoGroup, KIconLoader::SizeHuge, \
                KIconLoader::DefaultState, QStringList(), NULL, true);
-    if (icon.isNull())
+    KIcon kicon;
+    if (icon.isNull()) {
         icon = KIconLoader::global()->loadIcon("dialog-password",
                                                KIconLoader::NoGroup, \
KIconLoader::SizeHuge); +        
+    } else {
+            icon = KIconLoader::global()->loadIcon("dialog-password",
+                                               KIconLoader::NoGroup, \
KIconLoader::SizeHuge, KIconLoader::DefaultState , QStringList() << "" \
<<actionIconName); +//         kicon = KIcon("dialog-password", \
KIconLoader::global(), QStringList() << \
polkit_policy_file_entry_get_action_icon_name(entry)); +    }
+
+    
     setWindowIcon(icon);
     lblPixmap->setPixmap(icon);
 


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

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