File indexing completed on 2022-09-30 10:18:08

0001 /*
0002  *  SPDX-FileCopyrightText: 2012 Sebastian Gottfried <sebastiangottfried@web.de>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef MAINWINDOW_H
0008 #define MAINWINDOW_H
0009 
0010 #include <KMainWindow>
0011 
0012 #include <QQuickView>
0013 
0014 class KTouchContext;
0015 
0016 #ifdef KTOUCH_BUILD_WITH_X11
0017 #else
0018 #endif
0019 
0020 class MainWindow : public KMainWindow
0021 {
0022     Q_OBJECT
0023 public:
0024     explicit MainWindow(QWidget* parent = 0);
0025     ~MainWindow() override;
0026 private:
0027     void init();
0028     void onViewStatusChanged(QQuickView::Status status);
0029     QQuickView* m_view;
0030     KTouchContext* m_context;
0031 };
0032 
0033 #endif // MAINWINDOW_H