Commit e38c7b41 authored by Rafał Malinowski's avatar Rafał Malinowski

core: modernize KaduApplication

Signed-off-by: Rafał Malinowski's avatarRafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>
parent 40294ff4
......@@ -107,7 +107,6 @@ else ()
endif ()
set (kadu_MOC_SRCS
kadu-application.h
themes.h
updates.h
......
......@@ -35,19 +35,8 @@
#include "kadu-application.h"
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
#include <X11/Xatom.h>
#include <X11/extensions/Xfixes.h>
#undef KeyPress
#undef Status
#include <QtX11Extras/QX11Info>
#include "os/generic/compositing-aware-object.h"
#endif // defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
KaduApplication::KaduApplication(int &argc, char *argv[]) :
QApplication(argc, argv)
QApplication{argc, argv}
{
setApplicationName("Kadu");
setQuitOnLastWindowClosed(false);
......
......@@ -32,13 +32,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef KADU_APPLICATION_H
#define KADU_APPLICATION_H
#include <QtWidgets/QApplication>
#pragma once
#include "exports.h"
#include <QtWidgets/QApplication>
class KADUAPI KaduApplication : public QApplication
{
Q_OBJECT
......@@ -47,5 +46,3 @@ public:
KaduApplication(int &argc, char *argv[]);
};
#endif // KADU_APPLICATION_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment