Changeset View
Changeset View
Standalone View
Standalone View
tabbox/desktopmodel.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 48 | public: | |||
---|---|---|---|---|---|
54 | explicit DesktopModel(QObject* parent = nullptr); | 54 | explicit DesktopModel(QObject* parent = nullptr); | ||
55 | ~DesktopModel(); | 55 | ~DesktopModel(); | ||
56 | 56 | | |||
57 | virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; | 57 | virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; | ||
58 | virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; | 58 | virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; | ||
59 | virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; | 59 | virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; | ||
60 | virtual QModelIndex parent(const QModelIndex& child) const; | 60 | virtual QModelIndex parent(const QModelIndex& child) const; | ||
61 | virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; | 61 | virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; | ||
62 | virtual QHash<int, QByteArray> roleNames() const; | ||||
62 | Q_INVOKABLE QString longestCaption() const; | 63 | Q_INVOKABLE QString longestCaption() const; | ||
63 | 64 | | |||
64 | /** | 65 | /** | ||
65 | * Generates a new list of desktops based on the current config. | 66 | * Generates a new list of desktops based on the current config. | ||
66 | * Calling this method will reset the model. | 67 | * Calling this method will reset the model. | ||
67 | **/ | 68 | **/ | ||
68 | void createDesktopList(); | 69 | void createDesktopList(); | ||
69 | /** | 70 | /** | ||
Show All 20 Lines |