[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/libs/libplasmaclock
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2008-11-02 5:59:06
Message-ID: 1225605546.903597.29047.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 878924 by aseigo:
ToolTipContent
M +14 -14 clockapplet.cpp
M +1 -1 clockapplet.h
--- trunk/KDE/kdebase/workspace/libs/libplasmaclock/clockapplet.cpp #878923:878924
@@ -103,7 +103,7 @@
void ClockApplet::updateContent()
{
- Plasma::ToolTipManager::Content tipData;
+ Plasma::ToolTipContent tipData;
{
// the main text contains the current timezone's time and date
@@ -111,7 +111,7 @@
QString mainText = d->prettyTimezone + " ";
mainText += KGlobal::locale()->formatTime(data["Time"].toTime(), false) + "<br>";
mainText += KGlobal::locale()->formatDate(data["Date"].toDate());
- tipData.mainText = mainText;
+ tipData.setMainText(mainText);
}
QString subText;
@@ -126,33 +126,33 @@
d->addTzToTipText(subText, tz);
}
- tipData.subText = subText;
+ tipData.setSubText(subText);
// query for custom content
- Plasma::ToolTipManager::Content customContent = toolTipContent();
- if (customContent.image.isNull()) {
- tipData.image = KIcon("chronometer").pixmap(IconSize(KIconLoader::Desktop));
+ Plasma::ToolTipContent customContent = toolTipContent();
+ if (customContent.image().isNull()) {
+ tipData.setImage(KIcon("chronometer").pixmap(IconSize(KIconLoader::Desktop)));
} else {
- tipData.image = customContent.image;
+ tipData.setImage(customContent.image());
}
- if (!customContent.mainText.isEmpty()) {
+ if (!customContent.mainText().isEmpty()) {
// add their main text
- tipData.mainText = customContent.mainText + "<br>" + tipData.mainText;
+ tipData.setMainText(customContent.mainText() + "<br>" + tipData.mainText());
}
- if (!customContent.subText.isEmpty()) {
+ if (!customContent.subText().isEmpty()) {
// add their sub text
- tipData.subText = customContent.subText + "<br>" + tipData.subText;
+ tipData.setSubText(customContent.subText() + "<br>" + tipData.subText());
}
- tipData.autohide = false;
+ tipData.setAutohide(false);
Plasma::ToolTipManager::self()->setContent(this, tipData);
}
-Plasma::ToolTipManager::Content ClockApplet::toolTipContent()
+Plasma::ToolTipContent ClockApplet::toolTipContent()
{
- return Plasma::ToolTipManager::Content();
+ return Plasma::ToolTipContent();
}
void ClockApplet::createConfigurationInterface(KConfigDialog *parent)
--- trunk/KDE/kdebase/workspace/libs/libplasmaclock/clockapplet.h #878923:878924
@@ -63,7 +63,7 @@
virtual void createClockConfigurationInterface(KConfigDialog *parent);
virtual void clockConfigAccepted();
virtual void changeEngineTimezone(const QString &oldTimezone, const QString &newTimezone);
- virtual Plasma::ToolTipManager::Content toolTipContent();
+ virtual Plasma::ToolTipContent toolTipContent();
void wheelEvent(QGraphicsSceneWheelEvent *event);
void createConfigurationInterface(KConfigDialog *parent);
void initExtenderItem(Plasma::ExtenderItem *item);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic