[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: RE: [Kde-pim] Question to QCheckListItem
From: "Best, Jan-Pascal van" <j.p.vanbest () tbm ! tudelft ! nl>
Date: 2002-11-01 14:50:09
[Download RAW message or body]
Hi Tobias,
> > > in kcmkabc checking or unchecking an item isn't recognized by the
> > > KControl module framework because no changed() signal is emitted.
> > > But adding such a signal to QCheckListItem and connecting it to
> > > the modul isn't possible, since QCheckListItem is no QObject.
> > >
> > > Does anyone has an idea how to tell the ListView, that an icon was
> > > checked or unchecked by the user?
> > Override QCheckListItem::stateChange()?
> This was my first thought to override it and send a signal
> from there, but
> we can't send signals.
>
> The only solution I see is to reimplement the listview and
> add a method
> void setChanged();
> that is called from out the stateChange() method
> parent()->setChanged()
> of the items. But it's a ugly way IMHO.
>
> Why didn't made TrollTech the items derivated from QObject? :(
Can't you have have ConfigViewItem multi-inherit QObject?
Then you can send signals...
Cheers
Jan-Pascal
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic