/***************************************************************************
- * Copyright (C) 2005-2016 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef QTUIAPPLICATION_H_
-#define QTUIAPPLICATION_H_
+#pragma once
#ifdef HAVE_KDE4
# include <KApplication>
class QtUi;
#ifdef HAVE_KDE4
-class QtUiApplication : public KApplication, public Quassel
+class QtUiApplication : public KApplication
{
#else
-class QtUiApplication : public QApplication, public Quassel
+class QtUiApplication : public QApplication
{
#endif
void saveState(QSessionManager &manager);
#endif
-protected:
- virtual void quit();
-
private:
/**
* Migrate settings if neccessary and possible
*/
bool applySettingsMigration(QtUiSettings settings, const uint newVersion);
- bool _aboutToQuit;
-};
+private slots:
+ void initUi();
+private:
+ bool _aboutToQuit{false};
-#endif
+ Quassel _quasselInstance;
+};