[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.2/kdebase/workspace/plasma/applets/analog-clock
From: Darío Andrés Rodríguez <andresbajotierra () gmail ! co
Date: 2009-03-20 13:07:18
Message-ID: 1237554438.953447.5598.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 941722 by darioandres:
Backport to 4.2branch of:
SVN commit 941717 by darioandres:
Enlarge the clock hands if the rect size is < KIconLoader::SizeEnormous
(currently 128px)
Improves readability on small analog clocks
Patch approved by notmart
CCBUG: 165199
M +5 -0 clock.cpp
--- branches/KDE/4.2/kdebase/workspace/plasma/applets/analog-clock/clock.cpp #941721:941722
@@ -41,6 +41,7 @@
#include <KDebug>
#include <KLocale>
#include <KIcon>
+#include <KIconLoader>
#include <KSharedConfig>
#include <KTimeZoneWidget>
#include <KDialog>
@@ -221,6 +222,8 @@
p->save();
elementRect = m_theme->elementRect(name);
+ if( rect.height() < KIconLoader::SizeEnormous )
+ elementRect.setWidth( elementRect.width() * 2.5 );
static const QPoint offset = QPoint(2, 3);
p->translate(rect.width()/2+offset.x(), rect.height()/2+offset.y());
@@ -235,6 +238,8 @@
name = handName + "Hand";
elementRect = m_theme->elementRect(name);
+ if( rect.height() < KIconLoader::SizeEnormous )
+ elementRect.setWidth( elementRect.width() * 2.5 );
p->translate(rect.width()/2, rect.height()/2);
p->rotate(rotation);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic