[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KEditToolbar bug ?
From: Pupeno <pupeno () kde ! org>
Date: 2003-11-28 19:51:27
[Download RAW message or body]
-----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@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 <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic