MainWindow should inherit from KMainWindow and not from QMainWindow
because QMainWindow does not call the queryClose function upon closing.
This disabled the "really quit?" dialog which should come up if more than one session
is currently open.
Furthermore makes Yakuake properly quit when requested via the "Quit" action or the dialog by
making the QApplication quit if the last Window Closes.
BUG: 398425