On Monday, March 07, 2011 04:33:28 augustin wrote:
> On Thursday 03 March 2011 10:43:13 pm you wrote:
> > On Thursday, March 03, 2011 08:23:32 augustin wrote:
> > > A question was asked in 2008 in the wiki but didn't get any useful
> > > reply, so I am asking here, regarding the following tutorial:
> > > http://techbase.kde.org/Development/Tutorials/Plasma/GettingStarted
> > >
> > > http://techbase.kde.org/Talk:Development/Tutorials/Plasma/GettingStarte
> > > d
> > >
> > >   "There are some infos about a QRectF boundingRect() method, but no
> > >such method defined in the actual code, is that normal ?"
> >
> > It's defined in QGraphicsWidget, boundingRect() is inherited by 
> >
> > Plasma::Applet:
> >
> > See http://doc.qt.nokia.com/latest/qgraphicswidget.html#boundingRect
> >
> Thank you Sebastian for the reference.
> I'll make a note in the comment page. I am tempted to remove the reference 
> from the main article, though. It does not belong to a tutorial aimed a 
> beginners. 

Whenever you need the geometry of a plasmoid in your code, without the 
margins, you need contentsRect(), so I'd say it's a pretty basic thing.

Maybe *you* didn't need it in your examples, but that doesn't mean it's 
advanced stuff, or anything.

> I am ambivalent about QT being a requirement before starting KDE
> development,  as if we should know its whole API before attempting any KDE
> devel. On the contrary, most new KDE developers never used QT before and
> learn as they go along because they need it for KDE.
> 
> In any case, thanks. I'll add the reference somewhere in  that tutorial.

Are you going to do that for all virtual methods? Maybe we should actually 
assume people know about object inheritance... not sure though.

Cheers,
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to