1. 28 Feb, 2021 1 commit
  2. 24 Feb, 2021 3 commits
  3. 29 Jan, 2021 3 commits
  4. 24 Jan, 2021 2 commits
  5. 16 Jan, 2021 1 commit
  6. 10 Jan, 2021 1 commit
  7. 09 Jan, 2021 1 commit
  8. 02 Jan, 2021 1 commit
  9. 31 Dec, 2020 1 commit
  10. 27 Dec, 2020 1 commit
    • Albert Astals Cid's avatar
      Fix opening markdown files · 9e23338b
      Albert Astals Cid authored
      In d2ae2c28 we introduced a tweak that
      broke opening markdown files.
      what we really want is this:
       * If the mimetype from the filename is text (or children) but looking
         at the data says it's not text, then try opening first opening with
         the data suggeted mimetype
       * But if the data suggested mimetype says it's text, use the filename
         suggested mimetype since for example, the only way to really
         differentiate markdown from text is the filename, so trust that
      BUGS: 430538
  11. 21 Dec, 2020 2 commits
  12. 14 Dec, 2020 1 commit
  13. 09 Dec, 2020 2 commits
    • Albert Astals Cid's avatar
      clang-tidy: Disable performance-no-automatic-move · bc85160d
      Albert Astals Cid authored
      It's just too aggressive with Qt classes that are refcounted and fine to
    • Albert Astals Cid's avatar
      Make the CI pass with new clang-tidy · d1c2eed1
      Albert Astals Cid authored
      Disable bugprone-suspicious-include since it's triggered by the moc
      Disable bugprone-reserved-identifier since it's triggered by all our
      _OKULAR defines, and yes even if the spec says that underscore is
      reserved, are we going to be that unlucky that the library decides to
      start using _OKULAR ? not probably
      Add two TODOs for the future to make NormalizedRect/Point faster
      Silence a warning about a quick moving QString if we make it non const
      Silence a uchar vs char warning that is in decades old code so
      experience seems to suggest it's ok.
  14. 06 Dec, 2020 1 commit
  15. 02 Dec, 2020 1 commit
  16. 28 Nov, 2020 1 commit
  17. 26 Nov, 2020 4 commits
  18. 25 Nov, 2020 3 commits
  19. 20 Nov, 2020 2 commits
    • David Hurka's avatar
      Fix QScroller crash on Qt < 5.14 and certain screen arrangements · c6a32751
      David Hurka authored
      QScrollerPrivate::setDpiFromWidget() before Qt 5.14 crashes
      when the target widget does not intersect a physical screen,
      because QDesktopWidget returns screen index `-1` in this case,
      which leads to an out-of-range read from QApplication::screens(),
      which leads to a segfault when reading from an invalid QScreen* pointer.
      This adds a workaround that checks for the `-1` situation,
      and then tries to resize PageView temporarily to intersect at least some screen.
      BUG: 425188
      FIXED-IN: 20.12
    • Alex Rosca's avatar
      Avoid unintentional accelerating flicks by reducing maximum flick time · 8ae95b29
      Alex Rosca authored
      When making a flick using the mouse or the touchscreen and then slowly
      dragging the pages in the same direction with the flick, it unintentionally
      reenters the flicking state after a mouse button release and it's quite
      annoying. The commit reduces the maximum time before the next flick.
      Steps to reproduce:
      1) Flick in direction A.
      2) While the view is coasting, decide that you want to stop close to the current position.
      3) Grab the view (still coasting), and drag it slowly in direction A.
      4) When you reached the desired point, stop your movement, and release the view.
      5) QScroller interprets this release as “accelerating flick”,
         and makes the view coast faster in direction A.
      Upstream bug is QTBUG-88249; QScroller ignores MinimumVelocity for accelerating flicks.
  20. 18 Nov, 2020 1 commit
    • David Hurka's avatar
      New part/ directory for okularpart sources from /, ui/, conf/ · 19d5dd8e
      David Hurka authored
      Source files are no longer separated by UI and non-UI and similar,
      but only by their build target.
      * ui/ -> part/
      * Move all source files from conf/ to part/
      * Keep config skeleton definitions in conf/, needed for the mobile target too
      * Move editdrawingtooldialogtest.h from conf/autotests/ to autotests/
      * ui/data/icons/ -> icons/
      * Move /part.cpp, /part.rc and similar files to part/
      * Adapt include paths in source files
      * Adapt CMakeLists.txt files (in / and in subdirectories)
      * Adapt /Messages.sh
  21. 08 Nov, 2020 2 commits
  22. 03 Nov, 2020 1 commit
  23. 01 Nov, 2020 2 commits
    • Nicolás Alvarez's avatar
      gitlab-ci: use eatmydata in apt-get · d23422d0
      Nicolás Alvarez authored
      apt-get uses several fsync() calls on each package it installs, and that's
      very slow, especially on non-SSD. eatmydata turns fsync into no-op, which
      makes package installation much faster (it can cause corruption if there's
      power loss or similar, but that doesn't matter in CI where we throw away
      the whole container anyway).
      Currently the build_ubuntu_20_04 job in GitLab CI takes 8-9 minutes to
      install dependencies. Using eatmydata it went down to 2 minutes.
    • David Hurka's avatar
      Do not disable flick if cursor has been wrapped · 08c4d4f7
      David Hurka authored
      BUG: 420556
      FIXED-IN: 1.11.3
  24. 31 Oct, 2020 2 commits