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 @@ } } +