Fwd: KEditToolbar bug ?

Pupeno pupeno at kde.org
Sun Nov 30 19:05:24 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 30 November 2003 06:27, David Faure wrote:
> > 	KAction *AAction = new KAction(i18n("A"), Qt::Key_K, noteMapper,
> >  SLOT(map()), actionCollection(), "a");
>
> Depends on where this action collection is. Is that a KMainWindow? A part?
> A plugin? Another kind of KXMLGUIClient?
> Are you passing factory() to KEditToolbar, particularly in case you're
> using parts?
No, I'm not using KParts, this is a KMainWindow and I create the kedittoolbar 
this way:
KEditToolbar editToolbarDialog(actionCollection());
Other actions that I create (near those KActions I pasted in the original 
mail, are created this way: 
mMainToolBarAction = KStdAction::showToolbar("mainToolBar", 
actionCollection(), "mMainToolBarAction");
or
KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), 
actionCollection());
KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), 
actionCollection());
KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
always using the same actionCollection() I use for the other actions I create 
with KAction, but those created with KStdAction appear in the kedittoolbar.

Thanks.
- -- 
Pupeno: pupeno at kde.org
http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/yj93tCepaMf3unIRAlsVAJ9KDtID6WEZX8ijJVbAYb9WBNUIwgCeNVEm
b4fll33rzQRDpjBfREevzOE=
=BrUU
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list