[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/digital-clock (silent)
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2009-05-25 8:18:18
Message-ID: 1243239498.535176.16897.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 972524 by aseigo:
SVN_SILENT: fix coding style
M +12 -8 clock.cpp
--- trunk/KDE/kdebase/workspace/plasma/applets/digital-clock/clock.cpp #972523:972524
@@ -84,11 +84,13 @@
m_showDay = cg.readEntry("showDay", true);
m_showSeconds = cg.readEntry("showSeconds", false);
- //We don't need to cache the applet if it update every seconds
- if (m_showSeconds)
+ if (m_showSeconds) {
+ //We don't need to cache the applet if it update every seconds
setCacheMode(QGraphicsItem::NoCache);
- else
+ } else {
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
+ }
+
m_plainClockFont = cg.readEntry("plainClockFont", m_plainClockFont);
m_useCustomColor = cg.readEntry("useCustomColor", false);
if (m_useCustomColor) {
@@ -229,13 +231,15 @@
//that the update interval is set properly.
if (m_showSeconds != ui.secondsCheckbox->isChecked()) {
m_showSeconds = !m_showSeconds;
- //We don't need to cache the applet if it update every seconds
- if (m_showSeconds)
- setCacheMode(QGraphicsItem::NoCache);
- else
- setCacheMode(QGraphicsItem::DeviceCoordinateCache);
cg.writeEntry("showSeconds", m_showSeconds);
+ if (m_showSeconds) {
+ //We don't need to cache the applet if it update every seconds
+ setCacheMode(QGraphicsItem::NoCache);
+ } else {
+ setCacheMode(QGraphicsItem::DeviceCoordinateCache);
+ }
+
dataEngine("time")->disconnectSource(currentTimezone(), this);
dataEngine("time")->connectSource(currentTimezone(), this, updateInterval(), \
intervalAlignment()); }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic