[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-02-02 19:38:40
Message-ID: 1233603520.375027.29410.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 920365 by dantti:

Removed Qt::WindowStaysOnTopHint flag

 M  +7 -3      AuthDialog.cpp  


--- trunk/extragear/base/PolicyKit-kde/manager/AuthDialog.cpp #920364:920365
@@ -32,7 +32,7 @@
 #include <KUser>
 
 AuthDialog::AuthDialog(PolKitPolicyFileEntry *entry, uint pid)
-        : KDialog(0, Qt::Dialog | Qt::WindowStaysOnTopHint | \
Qt::CustomizeWindowHint) +        : KDialog(0, Qt::Dialog | Qt::CustomizeWindowHint)
 {
     setupUi(mainWidget());
     // the dialog needs to be modal to darken the parent window
@@ -50,15 +50,17 @@
         setCaption(actionMessage);
     }
 
+    // loads the standard key icon
     QPixmap icon = KIconLoader::global()->loadIcon("dialog-password",
                                                    KIconLoader::NoGroup,
                                                    KIconLoader::SizeHuge,
                                                    KIconLoader::DefaultState);
-
+    // create a paiter to paint the action icon over the key icon
     QPainter painter(&icon);
     const int iconSize = icon.size().width();
-
+    // the the emblem icon to size 32
     int overlaySize = 32;
+    // try to load the action icon
     const QPixmap pixmap = \
                KIconLoader::global()->loadIcon(polkit_policy_file_entry_get_action_icon_name(entry),
                
                                                            KIconLoader::NoGroup,
                                                            overlaySize,
@@ -66,6 +68,8 @@
                                                            QStringList(),
                                                            0,
                                                            true);
+    // if we're able to load the action icon paint it over the
+    // key icon.
     if (!pixmap.isNull()) {
         QPoint startPoint;
         // bottom right corner


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

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