Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/previewjob.h
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Line(s) | 93 | #endif | |||
---|---|---|---|---|---|
182 | /** | 182 | /** | ||
183 | * Returns the currently set sequence index | 183 | * Returns the currently set sequence index | ||
184 | * | 184 | * | ||
185 | * @since 4.3 | 185 | * @since 4.3 | ||
186 | **/ | 186 | **/ | ||
187 | int sequenceIndex() const; | 187 | int sequenceIndex() const; | ||
188 | 188 | | |||
189 | /** | 189 | /** | ||
190 | * Request preview to use the device pixel ratio @p. | ||||
elvisangelaccio: Did you mean `@p dpr`?
(unless doxygen is smart enough to figure out the name of the parameter? | |||||
191 | * The returned thumbnail may not respect the device pixel ratio returned. | ||||
192 | * Use QPixmap::devicePixelRatio to check, or paint as neccesary. | ||||
193 | * | ||||
194 | * @since 5.71 | ||||
meven: update | |||||
195 | */ | ||||
196 | void setDevicePixelRatio(qreal dpr); | ||||
197 | | ||||
198 | /** | ||||
190 | * Returns a list of all available preview plugins. The list | 199 | * Returns a list of all available preview plugins. The list | ||
191 | * contains the basenames of the plugins' .desktop files (no path, | 200 | * contains the basenames of the plugins' .desktop files (no path, | ||
192 | * no .desktop). | 201 | * no .desktop). | ||
193 | * @return the list of all available plugins | 202 | * @return the list of all available plugins | ||
194 | */ | 203 | */ | ||
195 | static QStringList availablePlugins(); | 204 | static QStringList availablePlugins(); | ||
196 | 205 | | |||
197 | /** | 206 | /** | ||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
239 | 248 | | |||
240 | protected Q_SLOTS: | 249 | protected Q_SLOTS: | ||
241 | void slotResult(KJob *job) override; | 250 | void slotResult(KJob *job) override; | ||
242 | 251 | | |||
243 | private: | 252 | private: | ||
244 | Q_PRIVATE_SLOT(d_func(), void startPreview()) | 253 | Q_PRIVATE_SLOT(d_func(), void startPreview()) | ||
245 | Q_PRIVATE_SLOT(d_func(), void slotThumbData(KIO::Job *, const QByteArray &)) | 254 | Q_PRIVATE_SLOT(d_func(), void slotThumbData(KIO::Job *, const QByteArray &)) | ||
246 | Q_DECLARE_PRIVATE(PreviewJob) | 255 | Q_DECLARE_PRIVATE(PreviewJob) | ||
256 | | ||||
257 | public: | ||||
258 | /** | ||||
259 | * Sets a default device Pixel Ratio used for Previews | ||||
260 | * Defaults to 1 | ||||
261 | * | ||||
262 | * @since 5.71 | ||||
263 | */ | ||||
264 | static void setDefaultDevicePixelRatio(qreal devicePixerRatio); | ||||
247 | }; | 265 | }; | ||
248 | 266 | | |||
elvisangelaccio: Typo: `devicePixelRatio`. | |||||
249 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(4, 7) | 267 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(4, 7) | ||
250 | /** | 268 | /** | ||
251 | * Creates a PreviewJob to generate or retrieve a preview image | 269 | * Creates a PreviewJob to generate or retrieve a preview image | ||
252 | * for the given URL. | 270 | * for the given URL. | ||
253 | * | 271 | * | ||
254 | * @param items files to get previews for | 272 | * @param items files to get previews for | ||
255 | * @param width the maximum width to use | 273 | * @param width the maximum width to use | ||
256 | * @param height the maximum height to use, if this is 0, the same | 274 | * @param height the maximum height to use, if this is 0, the same | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
Did you mean @p dpr?
(unless doxygen is smart enough to figure out the name of the parameter?)