Fwd: KEditToolbar bug ?

Pupeno pupeno at kde.org
Sat Nov 29 23:20:47 GMT 2003


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

Sorry to forward this to here, but I didn't got any reply on kde-devel@ and I 
couldn't find the reason after reading KEditToolbar's source code.
Thanks.

- ----------  Forwarded Message  ----------

Subject: KEditToolbar bug ?
Date: Friday 28 November 2003 16:51
From: Pupeno <pupeno at kde.org>
To: kde-devel at kde.org

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

I have a problem with KEditToolbar. I've been trying to find out it didn't
work for about a week and I couldn't find it.
Basically, my KActions doesn't appear on the KEditToolbar, only the
KStdActions appear there, do you have any idea why ?
I create my actions this way:
	QSignalMapper *noteMapper = new QSignalMapper(this);
	connect( noteMapper, SIGNAL(mapped(int)), scoreReadingTrainerView,
SLOT(checkNote(int)));
	KAction *AAction = new KAction(i18n("A"), Qt::Key_K, noteMapper,
 SLOT(map()), actionCollection(), "a");
	noteMapper->setMapping( AAction, ScoreReadingTrainerView::A);
	KAction *ASharpAction = new KAction(i18n("A Sharp / B Flat"), Qt::Key_O,
noteMapper, SLOT(map()), actionCollection(), "asharp");
	noteMapper->setMapping( ASharpAction, ScoreReadingTrainerView::ASharp);
	KAction *BAction = new KAction(i18n("B"), Qt::Key_L, noteMapper,
 SLOT(map()), actionCollection(), "b");
	noteMapper->setMapping( BAction, ScoreReadingTrainerView::B);

I even add them to the rc file this way:
		<Menu name="notes">
			<text>&Notes</text>
			[...]
			<Action name="a" />
			<Action name="asharp" />
			<Action name="b" />
		</Menu>
and
	<ToolBar name="mainToolBar">
		<text>Main Toolbar</text>
		<Action name="a" />
		<Action name="asharp" />
		<Action name="b" />
	</ToolBar>
and they appear in the menu bar and the toolbar and when I luch the toolbar
editing dialog, they appear, in the right box, so, I can move them up and
down and even remove them, but I can not add them back.
Any idea ?
Thanks.
- - --
Pupeno: pupeno at kde.org
http://www.kde.org
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/x6dCtCepaMf3unIRAuZHAJ9pEhN37yH9+39UYAyguEor9qccogCeOF56
84N3p7reeBnefJosV+lBnGg=
=sAX0
- -----END PGP SIGNATURE-----

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
>> <<

- -------------------------------------------------------

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

iD8DBQE/ySnStCepaMf3unIRAsT3AJ41gh6IuXsD4jWINkTt92lihgYF8gCeKTw1
7xo4wRhFiDINwc4QYRMH+hE=
=rYEE
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list