mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-05-09 16:09:55 +00:00
27 lines
500 B
C++
27 lines
500 B
C++
#ifndef NETWORKPROFILEMAINMODEL_H
|
|
#define NETWORKPROFILEMAINMODEL_H
|
|
|
|
#include <QObject>
|
|
|
|
class UserView;
|
|
|
|
class MainMenuModel : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QObject* userViewModel READ userViewModel NOTIFY userViewModelChanged)
|
|
|
|
UserView* _userViewModel = nullptr;
|
|
|
|
public:
|
|
MainMenuModel(QObject *ptr = nullptr);
|
|
|
|
QObject* userViewModel() const;
|
|
signals:
|
|
void userViewModelChanged(QObject* userViewModel);
|
|
void newGame();
|
|
|
|
};
|
|
|
|
#endif // NETWORKPROFILEMAINMODEL_H
|