- 29 Oct, 2020 2 commits
-
-
Stefan Brüns authored
-
Stefan Brüns authored
-
- 25 Oct, 2020 2 commits
-
-
Stefan Brüns authored
In case the cached thumbnail loaded successfully the isNull check is unreachable due to the early `return true`.
-
Stefan Brüns authored
The QSaveFile is only needed if there is thumbnail creator for the format of the current file.
-
- 24 Oct, 2020 1 commit
-
-
Stefan Brüns authored
Minimum Qt version set in CMakeLists.txt is 5.11, so the checks are redundant.
-
- 18 Oct, 2020 1 commit
-
-
Stefan Brüns authored
QImage::load(<path>) tries to find a fallback image if the file does not exist, by appending extensions of all supported file formats, as QImageReader defaults to format autodetection. Check if the file exists, and only then try to load it.
-
- 22 Sep, 2020 1 commit
-
-
Stefan Brüns authored
Cached thumbnails should not depend on varying properties of the caller, like iconAlpha, iconSize and theme of the overlay icon. Also, the current mime type icons are hardly visible and unrecognizable with dolphins default opacity of ~25%. BUG: 425789
-
- 30 Aug, 2020 1 commit
-
-
Volker Krause authored
Despite the name, fileUrl is already a QByteArray encoded URL here.
-
- 29 Aug, 2020 9 commits
-
-
Stefan Brüns authored
According to the spec, at least Thumb::URI and Thumb::MTime are required. KIO::PreviewJob discards any thumbnails without these and recreates the thumbnails.
-
Stefan Brüns authored
If the inner loop is not run, skipped will be 0 and the loop is left anyway.
-
Stefan Brüns authored
As `skipped` is always reset to 0, the condition is always true. Change the skipValidItems calculation to make it more obvious it calculates the remainder, and is always a positive value. Declare skipped inside the loop, as it is only used inside the loop. No functional changes.
-
Stefan Brüns authored
The branches can be simplified to an arithmetic operation.
-
Stefan Brüns authored
Replace the `yPos <= maxYPos)` check in the inner loop with an more explicit check whenever a thumnail is drawn. `(yPos <= maxYPos) && !validThumbnails)` is redundant, as yPos is only incremented whenever validThumbnails is incremented. Move the validThumbnails check into the loop.
-
The URI is only required when a thumbnail is created or looked up.
-
Commit 8ed64be9 ("Enlarge image in folder preview when there's only one image") made createSubThumbnail part of drawSubThumbnail. As a side effect, when skipValidItems is > 0, the thumbnail is not only fetched but also drawn in the top left position. Split fetching and drawing again. This is visible in the file dialogs (dolphin only uses sequenceIndex==0), when hovering a directory with the mouse.
-
Scaling down a large thumbnail is considerably faster than creating the thumbnail from scratch.
-
If a thumbnail already exists, the mimetype of the original file and available plugins do not matter. Saves accessing the original file, and allows thumbnails for file types which are not natively supported by KIO.
-
- 28 Aug, 2020 2 commits
-
-
Stefan Brüns authored
The second condition can never be fulfilled on the first iteration (QDirIterator does not return a path twice), but only after the QDirIterator has been reset in the outer loop. As validThumbnails is incremented when hadFirstThumbnail gets assigned, the outer loop will never be run after the initial assignement of hadFirstThumbnail, so the condition can never be true.
-
Stefan Brüns authored
Instead of doing a lookup for a thumbnail which is guaranteed to to not exist, and then trying to find a suitable plugin, which exists neither, just skip the file.
-
- 25 Aug, 2020 1 commit
-
-
Stefan Brüns authored
DrawFrame has been deprecated since KF 5.32, see frameworks/kio@8d9fde5d
-
- 22 Aug, 2020 2 commits
-
-
Stefan Brüns authored
`url` is either a `thumbnail:` URL or a local URL (when called from the m_propagationDirectories recursion), in both cases only the local path is relevant. Always supply a local path to the thumbForDirectory method, this also avoids creation of a temporary QUrl. Make the path canonical, as the path will be used will be used for determining the thumbname hash and the Thumb::URI metadata field. Otherwise, the directory thumbnailer will create duplicate thumbnails for e.g. symlinked directories: https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html#THUMBSAVE > You need the absolute canonical URI for the original file, > as stated in URI RFC 2396.
-
Stefan Brüns authored
Instead of returning an unspecific error later, when ThumbCreator::create fails due to a nonexisting or unreadable file, immediately error out.
-
- 21 Aug, 2020 1 commit
-
-
Stefan Brüns authored
Same as in kio core, see frameworks/kio@371e523f
-
- 29 May, 2020 1 commit
-
-
Méven Car authored
BUG: 419566 FIXED-IN: 20.08
-
- 02 Jan, 2020 1 commit
-
-
Laurent Montel authored
-
- 19 Nov, 2019 1 commit
-
-
Laurent Montel authored
-
- 01 Jul, 2019 1 commit
-
-
Friedrich W. H. Kossebau authored
-
- 05 Mar, 2019 1 commit
-
-
Friedrich W. H. Kossebau authored
GIT_SILENT
-
- 10 Oct, 2018 1 commit
-
-
Kai Uwe Broulik authored
The maximum size for local thumbnails was raised from 5 MB to unlimited elsewhere. BUG: 238690 Differential Revision: https://phabricator.kde.org/D15741
-
- 08 Oct, 2018 1 commit
-
-
Kai Uwe Broulik authored
When there is only one thumbnail it is painted larger. This pixmap is always generated, even if we ended up creating more than one thumbnail. This patch makes it remember the first valid thumbnail and paints the larger pixmap only as needed. Differential Revision: https://phabricator.kde.org/D15402
-
- 18 Sep, 2018 1 commit
-
-
Kai Uwe Broulik authored
The thumbnailer lives in a separate application, so it will read the enabled plugins from a different configuration than the calling application (e.g. dolphinrc). This leads to folder thumbnails following the default settings instead of user-configured settings, causing disabled plugins to be used and blacklisted thumbnails never being used even if enabled by the user. BUG: 388303 Differential Revision: https://phabricator.kde.org/D15097
-
- 26 Aug, 2018 1 commit
-
-
Elvis Angelaccio authored
The HTML thumbnailer uses WebEngine, so we need to set this attribute (before we create a QGuiApplication) in order to get rid of an annoying warning in the kdeinit (or kioslave) process.
-
- 15 May, 2018 1 commit
-
-
Peter Mühlenpfordt authored
Summary: If a custom folder icon is smaller than the requested preview size `KIO::PreviewJob` returns a pixmap of only that size. E.g. `dolphin` scales this up to its current thumbnail size which results in ugly overlay icons for very small folder icons. If the folder icon is scaled up before creating the overlay icons the overall preview looks much better. CCBUG: 315983 Test Plan: # Set a small custom icon (e.g. 32 px) for a folder containing images # Start dolphin with `Preview` enabled in the parent folder # Zoom thumbnails to e.g. 128 pixels overlay # The overlayed preview icons should not be blurry | Before: | After: | | {F5837958} | {F5837960} | Reviewers: #frameworks, rkflx Reviewed By: rkflx Subscribers: ngraham, rkflx Differential Revision: https://phabricator.kde.org/D12734
-
- 18 Dec, 2017 1 commit
-
-
Kevin Funk authored
-
- 16 Nov, 2017 1 commit
-
-
Nathaniel Graham authored
Summary: master now has KF 5.40, so require that and always use KIO::PreviewJob::defaultPlugins(), which lets us get rid of some unnecessary code Test Plan: Tested in KDE Neon. Compiles and deploys fine. Reviewers: #frameworks, broulik, elvisangelaccio Reviewed By: elvisangelaccio Differential Revision: https://phabricator.kde.org/D8847
-
- 21 Oct, 2017 2 commits
-
-
Nathaniel Graham authored
Summary: Use KIO::PreviewJob::defaultPlugins() instead of hardcoding plugin list. Depends on D8347 Test Plan: Compiles fine in KDE Neon. Reviewers: #frameworks, broulik, elvisangelaccio, markg Reviewed By: #frameworks, elvisangelaccio, markg Differential Revision: https://phabricator.kde.org/D8352
-
Nathaniel Graham authored
Summary: Use KIO::PreviewJob::defaultPlugins() instead of hardcoding plugin list. Depends on D8347 Test Plan: Compiles fine in KDE Neon. Reviewers: #frameworks, broulik, elvisangelaccio, markg Reviewed By: markg Differential Revision: https://phabricator.kde.org/D8352
-
- 11 Jun, 2017 1 commit
-
-
Martin Tobias Holmedahl Sandsmark authored
-
- 09 Jun, 2017 2 commits
-
-
Kevin Funk authored
Test Plan: Compiles fine under Linux Compiles fine under Windows Reviewers: bcooksley, dfaure, marten Reviewed By: dfaure Differential Revision: https://phabricator.kde.org/D6151
-
Pino Toscano authored
-