Andreas Pakulat apaku at gmx.de
Thu Jun 19 12:24:25 UTC 2008

On 19.06.08 07:54:30, Kris Wong wrote:
> > SVN commit 820370 by apaku:
> >
> > Allow to use Ctrl+Enter to "ok" the commit dialog.
> >
> > unfortunately I wasn't able to get this working with just a
> > KAction, the shortcut I've set wasn't triggering (I've set
> > the widget-with-childs context and added the action to the
> > dialog). Anybody got a bright idea why?
> A little late on the reply here, but I've done a similar thing
> with QAction on a QWidget subclass w/o any problem:

It shouldn't be a problem, right, but my slot was never triggered.

> QAction* navLeft = new QAction(this);
> navLeft->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_Left);
> addAction(navLeft);
> connect(navLeft, SIGNAL(triggered()), SLOT(slotNavigateLeft()));

Thats exactly the code I had, except for the Shift part and that I use
KAction+KShortcut constructor taking a translated string (i.e.

> Did you see anything in the application output about a shortcut
> collision?

I don't think so.

I'll retry this sometime later, when there's more time.


You will be honored for contributing your time and skill to a worthy cause.

More information about the KDevelop-devel mailing list