[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: 2 problems with cvs from yesterday 14:00 german time
From:       Michael Koch <m_koch () bigfoot ! de>
Date:       2000-03-09 10:43:42
[Download RAW message or body]

Am Thu, 09 Mar 2000 schrieb aleXXX:
> On Don, 09 Mär 2000, Simon Hausmann wrote:
> > On Thu, 9 Mar 2000, aleXXX wrote:
> > > "SomeClass:public QObject
> > > {
> > >    protected:
> > >       KAction amIASillyActionSpaceQuestionMark;
> > > }
> > > 
> > > SomeClass::SomeClass(...)
> > > :QObject(...)
> > > ,amIASillyActionSpaceQuestionMark(...)
> > > {
> > > ...
> > > };"
> > 
> > The problem is: This doesn't make sense ;-)
> > 
> > Your action is (in this very case) useless if it is not a child of the
> > actioncollection. However specifying the actioncollection as parent object
> > for your on-the-stack created action does not work (or at least it is
> > risky and not supposed to work IMHO ;-)
> 
> Can you please explain the "actioncollection" a bit more ?
> I don't know what this parameter in the constructor means or where it comes
> from.
> But it works.
> 
> > Bye,
> >  Simon
> 
> > P.S.: What do you gain with creating it on the stack? ;-)
> I like it better this way, no pointers.
> And it is marginally faster.

And it uses stack space which is on some systems limited.


Ciao,
Michael
--
koch@kde.org, m_koch@bigfoot.de
http://heaven.riednet.wh.tu-darmstadt.de/~mkoch

To me vi is Zen.  To use vi is to practice zen. Every command is
a koan. Profound to the user, unintelligible to the uninitiated.
You discover truth everytime you use it.
                                 -- reddy@lion.austin.ibm.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic