Changeset View
Changeset View
Standalone View
Standalone View
lib/thumbnailview/thumbnailview.h
Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Line(s) | |||||
185 | 185 | | |||
186 | private Q_SLOTS: | 186 | private Q_SLOTS: | ||
187 | void showContextMenu(); | 187 | void showContextMenu(); | ||
188 | void emitIndexActivatedIfNoModifiers(const QModelIndex&); | 188 | void emitIndexActivatedIfNoModifiers(const QModelIndex&); | ||
189 | void setThumbnail(const KFileItem&, const QPixmap&, const QSize&, qulonglong fileSize); | 189 | void setThumbnail(const KFileItem&, const QPixmap&, const QSize&, qulonglong fileSize); | ||
190 | void setBrokenThumbnail(const KFileItem&); | 190 | void setBrokenThumbnail(const KFileItem&); | ||
191 | 191 | | |||
192 | /** | 192 | /** | ||
193 | * Generate thumbnail for @a index. | 193 | * Generate thumbnail for url. | ||
194 | */ | 194 | */ | ||
195 | void updateThumbnail(const QModelIndex& index); | 195 | void updateThumbnail(const QUrl& url); | ||
196 | 196 | | |||
197 | /** | 197 | /** | ||
198 | * Tells the view the busy state of the document pointed by the index has changed. | 198 | * Tells the view the busy state of the document pointed by the url has changed. | ||
199 | */ | 199 | */ | ||
200 | void updateThumbnailBusyState(const QModelIndex& index, bool); | 200 | void updateThumbnailBusyState(const QUrl& url, bool); | ||
201 | 201 | | |||
202 | /* | 202 | /* | ||
203 | * Cause a repaint of all busy indexes | 203 | * Cause a repaint of all busy indexes | ||
204 | */ | 204 | */ | ||
205 | void updateBusyIndexes(); | 205 | void updateBusyIndexes(); | ||
206 | 206 | | |||
207 | void smoothNextThumbnail(); | 207 | void smoothNextThumbnail(); | ||
208 | 208 | | |||
209 | private: | 209 | private: | ||
210 | friend struct ThumbnailViewPrivate; | 210 | friend struct ThumbnailViewPrivate; | ||
211 | ThumbnailViewPrivate * const d; | 211 | ThumbnailViewPrivate * const d; | ||
212 | }; | 212 | }; | ||
213 | 213 | | |||
214 | } // namespace | 214 | } // namespace | ||
215 | 215 | | |||
216 | #endif /* THUMBNAILVIEW_H */ | 216 | #endif /* THUMBNAILVIEW_H */ |