Changeset View
Changeset View
Standalone View
Standalone View
src/views/dolphinview.h
Show All 40 Lines | |||||
41 | class KFileItemModel; | 41 | class KFileItemModel; | ||
42 | class KItemListContainer; | 42 | class KItemListContainer; | ||
43 | class KItemModelBase; | 43 | class KItemModelBase; | ||
44 | class KItemSet; | 44 | class KItemSet; | ||
45 | class ToolTipManager; | 45 | class ToolTipManager; | ||
46 | class VersionControlObserver; | 46 | class VersionControlObserver; | ||
47 | class ViewProperties; | 47 | class ViewProperties; | ||
48 | class QGraphicsSceneDragDropEvent; | 48 | class QGraphicsSceneDragDropEvent; | ||
49 | class QRegExp; | 49 | class QRegularExpression; | ||
50 | 50 | | |||
51 | /** | 51 | /** | ||
52 | * @short Represents a view for the directory content. | 52 | * @short Represents a view for the directory content. | ||
53 | * | 53 | * | ||
54 | * View modes for icons, compact and details are supported. It's | 54 | * View modes for icons, compact and details are supported. It's | ||
55 | * possible to adjust: | 55 | * possible to adjust: | ||
56 | * - sort order | 56 | * - sort order | ||
57 | * - sort type | 57 | * - sort type | ||
▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 66 | public: | |||
178 | 178 | | |||
179 | /** | 179 | /** | ||
180 | * Marks the item indicated by \p url to be scrolled to and as the | 180 | * Marks the item indicated by \p url to be scrolled to and as the | ||
181 | * current item after directory DolphinView::url() has been loaded. | 181 | * current item after directory DolphinView::url() has been loaded. | ||
182 | */ | 182 | */ | ||
183 | void markUrlAsCurrent(const QUrl& url); | 183 | void markUrlAsCurrent(const QUrl& url); | ||
184 | 184 | | |||
185 | /** | 185 | /** | ||
186 | * All items that match to the pattern \a pattern will get selected | 186 | * All items that match the regular expression \a regexp will get selected | ||
187 | * if \a enabled is true and deselected if \a enabled is false. | 187 | * if \a enabled is true and deselected if \a enabled is false. | ||
188 | * | ||||
189 | * Note that to match the whole string the pattern should be anchored: | ||||
190 | * - you can anchor the pattern with QRegularExpression::anchoredPattern() | ||||
191 | * - if you use QRegularExpresssion::wildcardToRegularExpression(), don't use | ||||
meven: s/QRegulrExpresssion/QRegularExpresssion | |||||
192 | * QRegularExpression::anchoredPattern() as the former already returns an | ||||
193 | * anchored pattern | ||||
188 | */ | 194 | */ | ||
189 | void selectItems(const QRegExp& pattern, bool enabled); | 195 | void selectItems(const QRegularExpression ®exp, bool enabled); | ||
190 | 196 | | |||
191 | /** | 197 | /** | ||
192 | * Sets the zoom level to \a level. It is assured that the used | 198 | * Sets the zoom level to \a level. It is assured that the used | ||
193 | * level is adjusted to be inside the range ZoomLevelInfo::minimumLevel() and | 199 | * level is adjusted to be inside the range ZoomLevelInfo::minimumLevel() and | ||
194 | * ZoomLevelInfo::maximumLevel(). | 200 | * ZoomLevelInfo::maximumLevel(). | ||
195 | */ | 201 | */ | ||
196 | void setZoomLevel(int level); | 202 | void setZoomLevel(int level); | ||
197 | int zoomLevel() const; | 203 | int zoomLevel() const; | ||
▲ Show 20 Lines • Show All 643 Lines • Show Last 20 Lines |
s/QRegulrExpresssion/QRegularExpresssion