-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobserver-settings.hpp
More file actions
34 lines (24 loc) · 867 Bytes
/
Copy pathobserver-settings.hpp
File metadata and controls
34 lines (24 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include <QDialog>
#include "observer.hpp"
#include "delegates/buttons-delegate.hpp"
#include "settings-model.hpp"
class Ui_ObserverSettings;
class ObserverSettings : public QDialog
{
Q_OBJECT
Ui_ObserverSettings *ui;
public:
explicit ObserverSettings(observer_settings settings, QWidget *parent = nullptr);
~ObserverSettings() override;
ObserverSettingsModel *model() { return &_model; }
public Q_SLOTS:
void addActionItem();
private:
ObserverSettingsModel _model;
ButtonDelegate _buttonsDelegate;
void onDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles);
void onRowsInserted(const QModelIndex &parent, int first, int last);
void onButtonClicked(const QModelIndex &index, const int buttonIndex, const bool checked);
void openEditors(int row);
};