From kde-commits Fri Feb 12 19:18:17 2010 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Fri, 12 Feb 2010 19:18:17 +0000 To: kde-commits Subject: KDE/kdeexamples/plasma/javascript/plasmoids/tiger/contents/code Message-Id: <1266002297.873137.4768.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=126600240719446 SVN commit 1089245 by aseigo: this is still a method; didn't get swapped to a property *sigh* M +3 -3 main --- trunk/KDE/kdeexamples/plasma/javascript/plasmoids/tiger/contents/code/main #1089244:1089245 @@ -1,8 +1,7 @@ svg = new PlasmaSvg('tiger') p = new QPixmap('kde.png') plasmoid.setAction('myAction', i18n('Toggle KDE Logo'), 'plasma') -drawLogo = true; - +drawLogo = true print('size of pixmap is: ' + p.rect.width + 'x' + p.rect.height) plasmoid.action_myAction = function() @@ -18,7 +17,7 @@ plasmoid.paintInterface = function(painter) { - rect = plasmoid.rect + rect = plasmoid.rect() svg.resize(rect.width, rect.height) svg.paint(painter, rect.x, rect.y) @@ -29,3 +28,4 @@ } } +