Changeset View
Changeset View
Standalone View
Standalone View
tabbox/clientmodel.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 50 | public: | |||
---|---|---|---|---|---|
59 | }; | 59 | }; | ||
60 | explicit ClientModel(QObject* parent = nullptr); | 60 | explicit ClientModel(QObject* parent = nullptr); | ||
61 | ~ClientModel(); | 61 | ~ClientModel(); | ||
62 | virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; | 62 | virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; | ||
63 | virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; | 63 | virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; | ||
64 | virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; | 64 | virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; | ||
65 | virtual QModelIndex parent(const QModelIndex& child) const; | 65 | virtual QModelIndex parent(const QModelIndex& child) const; | ||
66 | virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; | 66 | virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; | ||
67 | virtual QHash<int, QByteArray> roleNames() const; | ||||
67 | Q_INVOKABLE QString longestCaption() const; | 68 | Q_INVOKABLE QString longestCaption() const; | ||
68 | 69 | | |||
69 | /** | 70 | /** | ||
70 | * @param client The TabBoxClient whose index should be returned | 71 | * @param client The TabBoxClient whose index should be returned | ||
71 | * @return Returns the ModelIndex of given TabBoxClient or an invalid ModelIndex | 72 | * @return Returns the ModelIndex of given TabBoxClient or an invalid ModelIndex | ||
72 | * if the model does not contain the given TabBoxClient. | 73 | * if the model does not contain the given TabBoxClient. | ||
73 | **/ | 74 | **/ | ||
74 | QModelIndex index(QWeakPointer<TabBoxClient> client) const; | 75 | QModelIndex index(QWeakPointer<TabBoxClient> client) const; | ||
Show All 39 Lines |