From kde-commits Sat Nov 13 17:42:21 2010 From: Sujith Haridasan Date: Sat, 13 Nov 2010 17:42:21 +0000 To: kde-commits Subject: KDE/kdeplasma-addons/applets/frame Message-Id: <20101113174221.3F6BAAC89E () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=128967016609217 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 #include #include +#include +#include #include @@ -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);