[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: =?GB2312?B?W1BBVENIXSBCVUcgMTk3MjM2IG1ha2UgdGhlIGFuaW1hdGlvbiBvZiBxdWlja2xhdW5jaCB3b3Jr?=
From: "=?GB2312?B?xcvOwMa9?=" <wppan () redflag-linux ! com>
Date: 2009-06-24 13:44:35
Message-ID: 20090624134435.453341377C7 () mail ! redflag-linux ! com
[Download RAW message or body]
This is a MIME-formatted message. If you see this text it means that your
mail software cannot handle MIME-formatted messages.
[Attachment #2 (text/html)]
This patch is for BUG 197236.<br><br>It should apply to kdebase/workspace/plasma/applets/quicklaunch<br><br><br>
<br>
["kdebase-workspace-quicklaunch-animation.patch" (kdebase-workspace-quicklaunch-animation.patch)]
Index: quicklaunchIcon.cpp
===================================================================
--- quicklaunchIcon.cpp (revision 986298)
+++ quicklaunchIcon.cpp (working copy)
@@ -69,16 +69,11 @@
painter->setClipRect(option->rect);
QRect rect = option->rect;
rect.setSize(QSize(m_iconSize, m_iconSize));
- //rect.moveCenter(option->rect.center());
- rect.moveCenter(QPoint(option->rect.width() / 2, option->rect.height() / 2));
- //rect.setLeft((option->rect.width() - m_iconSize) / 2);
- //rect.setTop((option->rect.height() - m_iconSize) / 2);
- //QStyleOptionGraphicsItem opt = *option;
- //opt.rect = rect;
- //kDebug() << "Paint to:" << rect << "Original rect was:" << option->rect;
+ rect.moveCenter(option->rect.center());
+ QStyleOptionGraphicsItem opt = *option;
+ opt.rect = rect;
- painter->drawPixmap(rect, icon().pixmap(m_iconSize));
- //IconWidget::paint(painter, &opt, widget);
+ IconWidget::paint(painter, &opt, widget);
}
void QuicklaunchIcon::execute()
_______________________________________________
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