1. 10 Oct, 2020 1 commit
  2. 09 Oct, 2020 1 commit
  3. 05 Oct, 2020 1 commit
  4. 25 Sep, 2020 1 commit
  5. 22 Sep, 2020 3 commits
  6. 21 Sep, 2020 1 commit
  7. 18 Sep, 2020 3 commits
  8. 17 Sep, 2020 1 commit
  9. 15 Sep, 2020 1 commit
  10. 12 Sep, 2020 5 commits
  11. 11 Sep, 2020 1 commit
  12. 06 Sep, 2020 1 commit
  13. 05 Sep, 2020 1 commit
  14. 01 Sep, 2020 2 commits
  15. 30 Aug, 2020 1 commit
    • Volker Krause's avatar
      Fix the build · 54066eb3
      Volker Krause authored
      Despite the name, fileUrl is already a QByteArray encoded URL here.
      54066eb3
  16. 29 Aug, 2020 10 commits
    • Stefan Brüns's avatar
      Add mandatory metadata to thumbnail · 1eeaf1a6
      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.
      1eeaf1a6
    • Stefan Brüns's avatar
      Do not check dir.hasNext() twice · bf486c01
      Stefan Brüns authored
      If the inner loop is not run, skipped will be 0 and the loop is left
      anyway.
      bf486c01
    • Stefan Brüns's avatar
      Remove last redundant loop condition · 184bc28a
      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.
      184bc28a
    • Stefan Brüns's avatar
      Simplify rounding of skip count · 5905a6ec
      Stefan Brüns authored
      The branches can be simplified to an arithmetic operation.
      5905a6ec
    • Stefan Brüns's avatar
      Simplify loop conditions · c900324b
      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.
      c900324b
    • Stefan Brüns's avatar
      Only create file URI when required · 78a8c7d3
      Stefan Brüns authored
      The URI is only required when a thumbnail is created or looked up.
      78a8c7d3
    • Stefan Brüns's avatar
      Avoid massive overdrawing with sequenceIndex != 0 · 900db615
      Stefan Brüns authored
      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.
      900db615
    • Stefan Brüns's avatar
      Try fallback to large thumbnail if small one is not available · f1c90489
      Stefan Brüns authored
      Scaling down a large thumbnail is considerably faster than creating the
      thumbnail from scratch.
      f1c90489
    • Stefan Brüns's avatar
      Delay check for mimetype and plugin until required · 0b9a5372
      Stefan Brüns authored
      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.
      0b9a5372
    • Script Kiddy's avatar
      SVN_SILENT made messages (.desktop file) - always resolve ours · f9553cc0
      Script Kiddy authored
      In case of conflict in i18n, keep the version of the branch "ours"
      To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
      f9553cc0
  17. 28 Aug, 2020 2 commits
    • Stefan Brüns's avatar
      Remove bogus duplicate check · 3fda2087
      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.
      3fda2087
    • Stefan Brüns's avatar
      Do not try to create a thumbnail for an empty file · 4d74b884
      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.
      4d74b884
  18. 26 Aug, 2020 1 commit
  19. 25 Aug, 2020 1 commit
  20. 24 Aug, 2020 1 commit
  21. 22 Aug, 2020 1 commit