Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit b7675e79 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Avoid warnings on setShortcut() in runtime

parent 14444ed2
......@@ -30,11 +30,11 @@
#include "../objects/object_factory.h"
#include "../objects/bogus_imp.h"
#include <KActionCollection>
#include <KIconEngine>
#include <kactioncollection.h>
#include <QIcon>
#include <qregexp.h>
#include <QRegExp>
int GUIAction::shortcut() const
......@@ -93,10 +93,10 @@ KigGUIAction::KigGUIAction( GUIAction* act,
QString tooltip = act->descriptiveName();
tooltip.replace( QRegExp( "&&" ), "&" );
setToolTip( tooltip );
setShortcut( QKeySequence( act->shortcut() ) );
connect( this, SIGNAL(triggered()), this, SLOT(slotActivated()) );
doc.actionCollection()->addAction(act->actionName(), this);
doc.actionCollection()->addAction(act->actionName(), this);
doc.actionCollection()->setDefaultShortcut( this, QKeySequence( act->shortcut() ) );
void KigGUIAction::slotActivated()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment