[maemo-developers] Diablo Qt: how to hook into zoomin / zoomout hw keys

From: Ville M. Vainio vivainio at gmail.com
Date: Thu Oct 22 13:05:59 EEST 2009
On Wed, Oct 21, 2009 at 4:36 PM, Ville M. Vainio <vivainio at gmail.com> wrote:

> I have (in my MainWindow)
>
> QQQ
>
>    QShortcut* zIn = new QShortcut(QKeySequence::ZoomIn, this);
>    QShortcut* zOut = new QShortcut(QKeySequence::ZoomOut, this);
>
>    connect(zIn, SIGNAL(activated()), this, SLOT(zoomInPressed()));
>    connect(zOut, SIGNAL(activated()), this, SLOT(zoomOutPressed()));
>
> QQQ
>
>
> This works fine on desktop (ctrl +/-). However, on device it doesn't
> work. Any ideas what I'm doing wrong?

And to spice up the discussion, using simple shortcuts like "a" / "z"
works fine on device. So it seems  QKeySequence::ZoomIn is not up to
scratch.

-- 
Ville M. Vainio
http://tinyurl.com/vainio
More information about the maemo-developers mailing list