diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-22 23:27:01 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:02 -0500 |
| commit | 9435202034cafb05ffc11aed48ff57536bce73f7 (patch) | |
| tree | 03c6ad6d1125248dc727d7904721883ac06b616e /src/moapplication.h | |
| parent | f97e40f127441828eb4ffe11841ebf79191ac8a3 (diff) | |
removed flags from SingleInstance because there's only one left
refactoring in main.cpp:
- moved stuff to loglist.cpp and moapplication.cpp
- split main() into a few functions
Diffstat (limited to 'src/moapplication.h')
| -rw-r--r-- | src/moapplication.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/moapplication.h b/src/moapplication.h index 9db130af..3ed71fb6 100644 --- a/src/moapplication.h +++ b/src/moapplication.h @@ -24,27 +24,25 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QFileSystemWatcher>
-class MOApplication : public QApplication {
-Q_OBJECT
-public:
-
- MOApplication(int &argc, char **argv);
+class MOApplication : public QApplication
+{
+ Q_OBJECT
- virtual bool notify (QObject *receiver, QEvent *event);
+public:
+ static MOApplication create(int argc, char** argv);
+ virtual bool notify (QObject* receiver, QEvent* event);
public slots:
-
- bool setStyleFile(const QString &style);
+ bool setStyleFile(const QString& style);
private slots:
-
- void updateStyle(const QString &fileName);
+ void updateStyle(const QString& fileName);
private:
-
QFileSystemWatcher m_StyleWatcher;
QString m_DefaultStyle;
+ MOApplication(int argc, char** argv);
};
|
