/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2016 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#ifndef QTUIAPPLICATION_H_
#define QTUIAPPLICATION_H_
-#ifdef HAVE_KDE
+#ifdef HAVE_KDE4
# include <KApplication>
#else
# include <QApplication>
class QtUi;
-#ifdef HAVE_KDE
+#ifdef HAVE_KDE4
class QtUiApplication : public KApplication, public Quassel
{
#else
virtual bool init();
void resumeSessionIfPossible();
- virtual void commitData(QSessionManager &manager);
- virtual void saveState(QSessionManager &manager);
-
inline bool isAboutToQuit() const { return _aboutToQuit; }
+#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
+ void commitData(QSessionManager &manager) override;
+ void saveState(QSessionManager &manager) override;
+#else
+ void commitData(QSessionManager &manager);
+ void saveState(QSessionManager &manager);
+#endif
+
protected:
virtual void quit();