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

List:       kde-panel-devel
Subject:    [PATCH] Text and button overlaping in systemtray's popup applet when
From:       zhangqiang <zhangqiang () redflag-linux ! com>
Date:       2009-12-23 13:29:46
Message-ID: 4B321B4A.3020601 () redflag-linux ! com
[Download RAW message or body]

Hi,
When there are some updates,the kpackagekitSmartIcon will give a update
notification in systemtray.Now the buttons and text overlay in the
popupapplet.The reason is as following.Before showing the popup applet
the variable bodyHeight is small than expected because it didn't set the
textWidth when the popup applet contains image.The patch is in attachment.

["kdebase-workspace-systemtray.patch" (text/x-patch)]

--- kdebase-workspace-4.3.3/plasma/applets/systemtray/ui/notificationwidget.cpp	2009-12-23 \
                13:37:30.422031262 +0800
+++ kdebase-workspace-4.3.3-new/plasma/applets/systemtray/ui/notificationwidget.cpp	2009-12-23 \
13:42:06.637952800 +0800 @@ -226,6 +226,7 @@
     qreal imageHeight = 0;
     if (!notification->image().isNull()) {
         imageHeight = notification->image().size().height();
+        body->setTextWidth(q->preferredWidth() - \
notification->image().size().width() - 4);  }
 
     extenderItem->showCloseButton();



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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