[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Disabling buttons in main toolbar
From: Alberto Garcia Hierro <alberto.hierro () kdemail ! net>
Date: 2004-10-17 19:09:00
Message-ID: 200410172109.05003.alberto.hierro () kdemail ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Hi all,
I'm converting KCron yo use xmlui (bug 85341). I'm using states to
enable/disable some actions. Custom actions work fine, but standard actions
(like print, cut, copy and paste) don't change. Here is the relevant part
kcronui.rc:
<ToolBar name="mainToolBar">
<Action name="edit_new"/>
<Action name="edit_modify"/>
<Action name="edit_delete"/>
</ToolBar>
<State name="no_task_selected">
<Disable>
<Action name="print"/>
<Action name="cut"/>
<Action name="copy"/>
<Action name="edit_modify"/>
<Action name="edit_delete"/>
</Disable>
</State>
(paste is disabled in other state, but it's basically the same)
With KMainWindow::stateChanged("no_task_selected"), only edit_modify and
edit_delete buttons are disabled. Am I missing something? TIA
Regards,
Alberto
--
/* Alberto García Hierro (Skyhusker) */
[Attachment #5 (application/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