summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamarque V. Souza <lamarque@gmail.com>2011-09-18 18:15:25 (GMT)
committerLamarque V. Souza <lamarque@gmail.com>2011-09-18 18:15:25 (GMT)
commitf492281ddaa9c4d91eaa577fcf4bd39015048fe9 (patch)
treea580432832c73405a1f3865ad0696fa3133b1a9a
parent28b3101aa4a25dc15e13fed926aff27d62d9346c (diff)
Enable hover effects on system tray icon.
BUG: 190342 FIXED-IN: nm09
-rw-r--r--applet/networkmanager.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/applet/networkmanager.cpp b/applet/networkmanager.cpp
index 9c30b3c..8183f4b 100644
--- a/applet/networkmanager.cpp
+++ b/applet/networkmanager.cpp
@@ -79,7 +79,7 @@ NetworkManagerApplet::NetworkManagerApplet(QObject * parent, const QVariantList
KGlobal::locale()->insertCatalog("solidcontrol");
setHasConfigurationInterface(true);
- setPopupIcon(QIcon());
+ setPopupIcon("networkmanager");
//setPassivePopup(true); // FIXME: disable, only true for testing ...
m_overlayTimeline.setEasingCurve(QEasingCurve::OutExpo);
m_currentState = Solid::Control::NetworkInterfaceNm09::UnknownState;
@@ -106,7 +106,6 @@ NetworkManagerApplet::NetworkManagerApplet(QObject * parent, const QVariantList
m_activatables = new RemoteActivatableList(this);
setMinimumSize(16, 16);
updatePixmap();
- //(void)graphicsWidget();
}
NetworkManagerApplet::~NetworkManagerApplet()
@@ -335,10 +334,12 @@ void NetworkManagerApplet::paintInterface(QPainter * p, const QStyleOptionGraphi
}
if (useSvg) {
- QString el = svgElement(interface);
- m_svg->paint(p, m_contentSquare, el);
+ setPopupIcon(svgElement(interface));
+ /*QString el = svgElement(interface);
+ m_svg->paint(p, m_contentSquare, el);*/
} else {
- paintPixmap(p, m_pixmap, contentsRect);
+ //paintPixmap(p, m_pixmap, contentsRect);
+ setPopupIcon(m_pixmap);
}
paintStatusOverlay(p);
paintNeedAuthOverlay(p);