[Kde-games-devel] Fix double-click bug in GameScene code of KMahjongg

Frederik Schwarzer schwarzer at kde.org
Tue Dec 22 13:37:59 UTC 2015


Am Sonntag, 20. Dezember 2015, 09:26:29 schrieb Ian Wadham:

Hi Ian,

> The QApplication doco on this method is a bit ambiguous, see:
>     Qt 4 -
> http://doc.qt.io/qt-4.8/qapplication.html#doubleClickInterval-prop
> Qt 5 -
> http://doc.qt.io/qt-5/qapplication.html#doubleClickInterval-prop

Indeed. That's scary to read. The behaviour might have been changed to 
"affects this application only" in Qt5 but who knows until tested on 
all platforms.


> So, please remove those two lines from main.cpp and use my patch for
> KMahjongg's GameScene class files.

Anyway, I applied your patch. Here it works as the first click selects 
the tile and the second click is ignored when it occurs within the 
double-click timespan. Is that what you intended?

Regards,
Frederik


More information about the kde-games-devel mailing list