17 #ifndef UNITY_SHELL_SCOPES_PREVIEWMODELINTERFACE_H
18 #define UNITY_SHELL_SCOPES_PREVIEWMODELINTERFACE_H
20 #include <unity/SymbolExport.h>
22 #include <QAbstractListModel>
50 Q_PROPERTY(
int widgetColumnCount READ widgetColumnCount WRITE setWidgetColumnCount NOTIFY widgetColumnCountChanged)
55 Q_PROPERTY(
bool loaded READ loaded NOTIFY loadedChanged)
64 Q_PROPERTY(
bool processingAction READ processingAction NOTIFY processingActionChanged)
80 virtual void setWidgetColumnCount(
int count) = 0;
81 virtual int widgetColumnCount()
const = 0;
82 virtual bool loaded()
const = 0;
83 virtual bool processingAction()
const = 0;
84 QHash<int, QByteArray> roleNames()
const override
86 QHash<int, QByteArray> roles;
87 roles[RoleColumnModel] =
"columnModel";
94 void widgetColumnCountChanged();
96 void processingActionChanged();
105 void triggered(QString
const&, QString
const&, QVariantMap
const&);
A list of PreviewWidgetModelInterface instances.
Definition: PreviewModelInterface.h:37
Roles
The roles supported by this model.
Definition: PreviewModelInterface.h:75
Top-level namespace for all things Unity-related.
Definition: Version.h:37