[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeexamples/plasma/javascript/plasmoids/tiger/contents/code
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2009-10-21 0:03:09
Message-ID: 1256083389.165564.11889.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1038287 by aseigo:
just looks nicer
M +4 -4 main
--- trunk/KDE/kdeexamples/plasma/javascript/plasmoids/tiger/contents/code/main #1038286:1038287
@@ -1,15 +1,15 @@
svg = new PlasmaSvg('tiger');
p = new QPixmap('kde.png')
plasmoid.setAction('myAction', 'Toggle KDE Logo', 'plasma');
-drawKDELogo = true;
+drawLogo = true;
print('size of pixmap is: ' + p.rect().width() + 'x' + p.rect().height())
plasmoid.action_myAction = function()
{
- drawKDELogo = !drawKDELogo
+ drawLogo = !drawLogo
plasmoid.update()
- if (drawKDELogo) {
+ if (drawLogo) {
print("Refreshing Plasmoid with the KDE logo.")
} else {
print("Refreshing Plasmoid without the KDE logo.")
@@ -22,7 +22,7 @@
svg.resize(rect.width(), rect.height())
svg.paint(painter, rect.x(), rect.y())
- if (drawKDELogo) {
+ if (drawLogo) {
// draw the KDE logo centered
painter.drawPixmap(rect.x() + (rect.width() / 2 - p.rect().width() / 2),
rect.y() + (rect.height() / 2 - p.rect().height() / 2), p)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic