You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
493 B
29 lines
493 B
7 years ago
|
#ifndef SAMPLEWINDOW_H
|
||
|
#define SAMPLEWINDOW_H
|
||
|
|
||
|
#include <QtWidgets/QMainWindow>
|
||
|
#include <sampleviewmodel.h>
|
||
|
|
||
|
namespace Ui {
|
||
|
class SampleWindow;
|
||
|
}
|
||
|
|
||
|
class SampleWindow : public QMainWindow
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
Q_INVOKABLE explicit SampleWindow(QtMvvm::ViewModel *viewModel, QWidget *parent = nullptr);
|
||
|
~SampleWindow();
|
||
|
|
||
|
private Q_SLOTS:
|
||
|
void on_addButton_clicked();
|
||
|
void on_removeButton_clicked();
|
||
|
|
||
|
private:
|
||
|
SampleViewModel *_viewModel;
|
||
|
Ui::SampleWindow *ui;
|
||
|
};
|
||
|
|
||
|
#endif // SAMPLEWINDOW_H
|