Changeset View
Changeset View
Standalone View
Standalone View
src/libkdepim/widgets/kcheckcombobox.h
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | 50 | public: | |||
---|---|---|---|---|---|
147 | void setSeparator(const QString &separator); | 147 | void setSeparator(const QString &separator); | ||
148 | 148 | | |||
149 | /** | 149 | /** | ||
150 | * Returns The currently selected items. | 150 | * Returns The currently selected items. | ||
151 | * @param role The role the returned values belong to. | 151 | * @param role The role the returned values belong to. | ||
152 | */ | 152 | */ | ||
153 | Q_REQUIRED_RESULT QStringList checkedItems(int role = Qt::DisplayRole) const; | 153 | Q_REQUIRED_RESULT QStringList checkedItems(int role = Qt::DisplayRole) const; | ||
154 | 154 | | |||
155 | /** | ||||
156 | * Update the KCheckComboBox text with Item belonging to the role. | ||||
157 | * @param topLeft Curently unused. | ||||
158 | * @param bottomRight Curently unused. | ||||
159 | * @param role The role the updated values belong to. | ||||
160 | */ | ||||
161 | void updateCheckedItems(const QModelIndex &topLeft = QModelIndex(), const QModelIndex &bottomRight = QModelIndex(), int role = Qt::DisplayRole); | ||||
dvratil: Maybe move it to the `public Q_SLOTS` section as well? | |||||
162 | | ||||
155 | public Q_SLOTS: | 163 | public Q_SLOTS: | ||
156 | /** | 164 | /** | ||
157 | * Sets the currently selected items. Items that are not found in the model | 165 | * Sets the currently selected items. Items that are not found in the model | ||
158 | * are silently ignored. | 166 | * are silently ignored. | ||
159 | * | 167 | * | ||
160 | * @param items The items that will be set to checked. | 168 | * @param items The items that will be set to checked. | ||
161 | * @param role The role @p items belong to. | 169 | * @param role The role @p items belong to. | ||
162 | */ | 170 | */ | ||
Show All 27 Lines |
Maybe move it to the public Q_SLOTS section as well?