This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Plasma tutorial questions

Tags: None
(comma "," separated)
User avatar
batman
Registered Member
Posts
13
Karma
0

Plasma tutorial questions

Thu Mar 19, 2009 11:24 pm
Hi all,
I'm trying to work through the plasma tutorial here:
http://techbase.kde.org/Development/Tut ... ingStarted

Lines 46-48 of plasma-tutorial1.cpp are as follows:
Code: Select all
    // Now we draw the applet, starting with our svg
    m_svg.resize((int)contentsRect.width(), (int)contentsRect.height());
    m_svg.paint(p, (int)contentsRect.left(), (int)contentsRect.top());


The thing is, to get the results described in the tutorial, these don't seem to be necessary. Leaving them in (and commenting out drawing of the icon) results in a small black box and green dot being displayed (ie. that appears to be what those lines are drawing). Commenting those lines out shows the expected result (icon on widget background with text).

Can someone explain what's going on here? I'm on Kubuntu 8.10, KDE 4.2.1.


batman, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell