Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
36 lines
703 B
C++
36 lines
703 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2012~2012 CSSlayer <wengxt@gmail.com>
|
|
* SPDX-FileCopyrightText: 2017~2017 xzhao <i@xuzhao.net>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
*/
|
|
#ifndef _GUIWRAPPER_WRAPPERAPP_H_
|
|
#define _GUIWRAPPER_WRAPPERAPP_H_
|
|
|
|
#include "mainwindow.h"
|
|
#include <QApplication>
|
|
|
|
namespace fcitx {
|
|
|
|
class FcitxQtConfigUIFactory;
|
|
class WrapperApp : public QApplication {
|
|
Q_OBJECT
|
|
public:
|
|
WrapperApp(int &argc, char **argv);
|
|
virtual ~WrapperApp();
|
|
|
|
void init();
|
|
public Q_SLOTS:
|
|
void run();
|
|
|
|
private Q_SLOTS:
|
|
void errorExit();
|
|
|
|
private:
|
|
FcitxQtConfigUIFactory *factory_;
|
|
MainWindow *mainWindow_;
|
|
};
|
|
} // namespace fcitx
|
|
|
|
#endif // _GUIWRAPPER_WRAPPERAPP_H_
|