Shortcuts need to be set after being added

to the KActionCollection. You live and learn!

Doesn't work though, need to investigate further.

svn path=/trunk/KDE/kdepim/; revision=812963
wilder-work
Jakob Petsovits 18 years ago
parent 15a8e46d4d
commit c65a701145
  1. 2
      messageactions.cpp

@ -109,10 +109,10 @@ MessageActions::MessageActions( KActionCollection *ac, QWidget * parent ) :
action = new KAction( KIcon("mail-mark-unread"), i18n("Mark Message as &Unread"), this );
action->setToolTip( i18n("Mark selected messages as unread") );
action->setShortcut( Qt::CTRL+Qt::Key_U );
connect( action, SIGNAL(activated()),
this, SLOT(slotSetMsgStatusUnread()) );
mActionCollection->addAction( "status_unread", action );
action->setShortcut( Qt::CTRL+Qt::Key_U );
mStatusMenu->addAction( action );
mStatusMenu->addSeparator();

Loading…
Cancel
Save