[KDE/Mac] kmahjongg on KF5

Ian Wadham iandw.au at gmail.com
Tue Dec 23 11:38:36 UTC 2014


Hi Marko,

On 23/12/2014, at 8:27 PM, Marko Käning wrote:
> I just test-ran kmahjongg on OSX/CI’s KF5 and it RUNS!!! :-)
> 
> 	I can play the game, as you told me to…
> 	;-)

BRILLIANT !!!!!!!!  Well done!

Now live dangerously, try and change tile layout, tile theme
and background theme.  Alos try things like Demo and
Shuffle, in the Move menu.

If you can do all those, you will be exercising quite a few
Frameworks and KDE Games libraries.

> BUT, trying to leave the application with CMD+Q or
> via the corresponding “Quit kmahjongg” menu item
> DOES NOT SUCCEED!!!
> 
> The only way to do this is by closing its main window.
> 
> Could it be that on KF5 some signals go astray?

Could be true with KF5 on Mac.  KDE 4 uses KApplication and
its quit() slot.  KF5 apps would use QApplication's quit(), I think.

Either way, I think KMahjongg would be setting up a KStandardAction
or a KStandardGameAction for "quit", in its main-window class, and
that should take care of CMD+Q and the Quit menu-item.  There is
also, I think, a default action to quit when the last (or only) window
is closed.  So that is probably why closing the window works.

See doco on void QApplication::lastWindowClosed () [signal]
and void QCoreApplication::quit () [static slot].

Maybe, there is something not quite right about KStandardAction quit
in KF5 on Apple OS X(?)…  So here we go again?… :-)

Cheers, Ian W.



More information about the kde-mac mailing list