[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeplasma-addons/applets/frame
From: Sujith Haridasan <sujith.h () gmail ! com>
Date: 2010-11-13 17:42:21
Message-ID: 20101113174221.3F6BAAC89E () svn ! kde ! org
[Download RAW message or body]
SVN commit 1196618 by sujithh:
Adding tooltip to the frame applet. The file name will
be displayed when the mouse pointer is placed in the frame.
M +5 -0 frame.cpp
--- trunk/KDE/kdeplasma-addons/applets/frame/frame.cpp #1196617:1196618
@@ -45,6 +45,8 @@
#include <Plasma/DataEngine>
#include <Plasma/ToolButton>
#include <Plasma/Frame>
+#include <Plasma/ToolTipContent>
+#include <Plasma/ToolTipManager>
#include <math.h>
@@ -273,6 +275,9 @@
}
kDebug() << "Rendering picture";
+ Plasma::ToolTipContent toolTipData;
+ toolTipData.setSubText(m_mySlideShow->currentUrl().fileName());
+ Plasma::ToolTipManager::self()->setContent(this, toolTipData);
// create a QPixmap which can be drawn in paintInterface()
QPixmap picture = QPixmap::fromImage(m_scaledImage);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic