RFC: KToolBar changes
Simon Hausmann
hausmann at kde.org
Wed Mar 12 12:13:34 GMT 2003
On Wed, Mar 12, 2003 at 01:34:29PM +0200, Andras Mantia wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> Is it possible to move some private members in KToolBar to protected, without
> breaking BC? I must access in a subclass
>
> Id2WidgetMap id2widget;
>
> so I thought moving:
>
> QMap<QWidget*, int > widget2id;
> typedef QMap<int, QWidget* > Id2WidgetMap;
> Id2WidgetMap id2widget;
> QPtrList<QWidget> widgets;
>
> Right now I'm using the "#define private protected" hack, but I would be more
> satisfied if I can access the widgets which are on a KToolBar in a normal
> way.
>
> Or should I just add a protected/public(?) method which returns the id2widget
> map?
Is the existing QWidget *KToolBar::getWidget( int id ) method not
sufficient? :)
Simon
More information about the kde-core-devel
mailing list