[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/marble/src/plasmoid
From: Henry de Valence <hdevalence () gmail ! com>
Date: 2009-06-23 21:54:58
Message-ID: 1245794098.295366.9531.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 986010 by hdevalence:
Fix bug where the text overflows the bounding box
M +5 -0 worldclock.cpp
--- trunk/KDE/kdeedu/marble/src/plasmoid/worldclock.cpp #986009:986010
@@ -73,6 +73,8 @@
{
KConfigGroup cg = config();
m_map = new MarbleMap();
+ //Use max. 8MB RAM
+ m_map->setVolatileTileCacheLimit( 8192 );
if(cg.readEntry("projection", static_cast<int>(Equirectangular)) == Mercator)
m_map->setProjection(Mercator);
@@ -199,6 +201,8 @@
m_sun->update();
m_map->updateSun();
m_map->setNeedsUpdate();
+ //Text changes so we may need to recalculate the font size
+ recalculateFonts();
update();
}
@@ -272,6 +276,7 @@
}
+//TODO: optimize
void WorldClock::recalculateFonts( )
{
QString timestr;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic