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

List:       kde-commits
Subject:    branches/KDE/4.3/kdebase/workspace/plasma/applets/systemtray/ui
From:       Rob Scheepmaker <r.scheepmaker () student ! utwente ! nl>
Date:       2009-09-03 17:52:46
Message-ID: 1252000366.263999.7497.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1019473 by scheepmaker:

Let's just show the close button on notifications even on those with actions, because \
that works correctly now. Backported from r1019471



 M  +2 -2      notificationwidget.cpp  


--- branches/KDE/4.3/kdebase/workspace/plasma/applets/systemtray/ui/notificationwidget.cpp \
#1019472:1019473 @@ -228,15 +228,15 @@
         imageHeight = notification->image().size().height();
     }
 
+    extenderItem->showCloseButton();
+
     //set the correct size hint and display a close action if no actions are \
provided by the  //notification
     qreal bodyHeight = body->boundingRect().height();
     if (actionsWidget) {
-        extenderItem->hideCloseButton();
         q->setPreferredWidth(qMax(q->preferredWidth(), \
                actionsWidget->preferredWidth()));
         q->setPreferredHeight(qMax(bodyHeight + actionsWidget->size().height(), \
imageHeight));  } else {
-        extenderItem->showCloseButton();
         q->setPreferredHeight(qMax(bodyHeight, imageHeight));
     }
 }


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

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