[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/pager
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2008-11-14 7:14:42
Message-ID: 1226646882.208240.1315.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 884067 by aseigo:
don't paint text if we don't have text to paint.
results in a lot less debug out put too ;)
M +5 -3 pager.cpp
--- trunk/KDE/kdebase/workspace/plasma/applets/pager/pager.cpp #884066:884067
@@ -1040,9 +1040,11 @@
desktopText = KWindowSystem::desktopName(i+1);
}
- QPixmap result = Plasma::PaintUtils::shadowText(desktopText, \
defaultTextColor, shadowColor, QPoint(1,2), 2);
- //take also shadow position and radius into account
- painter->drawPixmap(m_rects[i].center() - result.rect().center() + \
QPoint(1,3), result); + if (!desktopText.isEmpty()) {
+ QPixmap result = Plasma::PaintUtils::shadowText(desktopText, \
defaultTextColor, shadowColor, QPoint(1,2), 2); + //take also shadow \
position and radius into account + painter->drawPixmap(m_rects[i].center() \
- result.rect().center() + QPoint(1,3), result); + }
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic