Init controller.

square-messages
Black Hat 2018-02-27 13:10:08 +08:00 committed by Black Hat
parent 0c1068c619
commit 6d34f1042f
3 changed files with 28 additions and 1 deletions

View File

@ -14,7 +14,8 @@ DEFINES += QT_DEPRECATED_WARNINGS
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += main.cpp
SOURCES += main.cpp \
matrix/controller.cpp
RESOURCES += \
res.qrc
@ -43,3 +44,6 @@ DISTFILES += \
ContactDetailForm.qml \
Contact.qml \
Setting.qml
HEADERS += \
matrix/controller.h

6
matrix/controller.cpp Normal file
View File

@ -0,0 +1,6 @@
#include "controller.h"
Controller::Controller(QObject *parent) : QObject(parent)
{
}

17
matrix/controller.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef CONTROLLER_H
#define CONTROLLER_H
#include <QObject>
class Controller : public QObject
{
Q_OBJECT
public:
explicit Controller(QObject *parent = nullptr);
signals:
public slots:
};
#endif // CONTROLLER_H