1. 23 Oct, 2020 2 commits
  2. 21 Oct, 2020 4 commits
    • Nate Graham's avatar
      Merge branch 'release/20.08' into master · 12cb9d4e
      Nate Graham authored
      12cb9d4e
    • Nate Graham's avatar
      Fix fast scrolling with Shift+Scroll · 777ac37e
      Nate Graham authored
      When holding down the shift key, multiply wheel and touchpad scroll
      distances by 10 to re-implement the fast scrolling feature that
      broke when we added animated/smooth scrolling.
      
      BUG: 420889
      FIXED-IN: 1.11.3
      777ac37e
    • David Hurka's avatar
      Fix cursor not updated after clicking internal link · 843c43cc
      David Hurka authored and Nate Graham's avatar Nate Graham committed
      updateCursor() was called by wheelEvent(), which made sense,
      because after the wheel event the page will have moved under the cursor.
      
      With smooth scrolling, it makes less sense in wheelEvent(),
      because at that point scrolling is still in the future.
      
      scrollContentsBy() appears to be called on every scroll step.
      (It is documented to be called at scrollbar value changes, so makes sense.)
      
      This patch removes updateCursor() from wheelEvent(), but adds it to scrollContentsBy().
      
      I did not check anything out with d->visibleItems, as was indicated it !176.
      
      BUG: 421437
      843c43cc
    • David Hurka's avatar
      Fix cursor not updated after clicking internal link · 8b008b02
      David Hurka authored and Nate Graham's avatar Nate Graham committed
      updateCursor() was called by wheelEvent(), which made sense,
      because after the wheel event the page will have moved under the cursor.
      
      With smooth scrolling, it makes less sense in wheelEvent(),
      because at that point scrolling is still in the future.
      
      scrollContentsBy() appears to be called on every scroll step.
      (It is documented to be called at scrollbar value changes, so makes sense.)
      
      This patch removes updateCursor() from wheelEvent(), but adds it to scrollContentsBy().
      
      I did not check anything out with d->visibleItems, as was indicated it !176.
      
      BUG: 421437
      8b008b02
  3. 17 Oct, 2020 2 commits
  4. 16 Oct, 2020 1 commit
  5. 13 Oct, 2020 2 commits
  6. 12 Oct, 2020 1 commit
    • David Hurka's avatar
      Fix scrolling with scrollbar when the slider is not clicked · 17c26699
      David Hurka authored
      This fixes scrolling with the scrollbar,
      so it is not reset when scrolling on the viewport afterwards.
      
      PageView’s QSroller was not correctly updated by update_scroller,
      because it was connected to QAbstractSlider::sliderMoved and sliderReleased,
      which are only emitted while the “slider is down”,
      i. e. not when the user scrolls the scrollbar other than dragging the slider.
      Now update_scroller is connected to actionTriggered(),
      which is emitted for all user interactions.
      
      Note that scrolling using the scrollbar calls QAbstractScrollArea::scrollContentsBy(),
      and so bypasses smooth scrolling of the QScroller. This could be considered a feature,
      otherwise it is more a bug in Qt than in Okular, because we can not ignore scrollContentsBy().
      
      Steps to reproduce:
      1. Open a long document
      2. Click on the vertical scrollbar below the slider
      3. Okular scrolls one page down
      4. Scroll in the viewport
      5. Okular starts scrolling from the position from step 1.
      
      Test plan:
      * Scroll using scrollbar
        + Click on the vertical scrollbar below the slider
        + Middle-click on the vertical scrollbar below the slider
        + Click on the little arrow of the vertical scrollbar
        + Scroll using a scrolling device (e. g. `xdotool click 4`) on the vertical scrollbar
        + Drag the slider of the scrollbar
      * “cross-product” verify QScroller state
        + Scroll using a scrolling device on the viewport
        + Scroll using Browse tool dragging
        + Scroll the viewport by clicking a point in the thumbnails view
        + Scroll the viewport using arrow keys and Page Up/Down keys
      
      BUG: 421159
      17c26699
  7. 11 Oct, 2020 2 commits
    • Tobias Deiminger's avatar
    • Tobias Deiminger's avatar
      Complete TextSelectorEngine if nothing selected · c8cf6513
      Tobias Deiminger authored
      Selecting highlight tool, pressing left mouse button while over text, and
      immediately releasing without dragging a selection caused inconsistent state.
      
      It left TextSelectorEnigne in the state m_creationCompleted == false and
      m_lockedItem == something. Then in continuous mode all events kept on being
      propagated to TextSelectorEngine::event, even if the user started unrelated
      interactions in the meantime. This caused various side effects.
      
      It notably happened when you double clicked a finished highlight annotation,
      as described in bug 426658.
      
      We can go to m_creationComplete after release even without a selection,
      because TextSelectorEngine::end and PageViewAnnotator::performRouteMouseOrTabletEvent
      handle the case just fine, i.e. don't create an annotation but reset the state machine.
      
      Fixes bug 426658 at least partially. I couldn't reproduce the described crash,
      so no idea if that's also fixed.
      
      BUG: 446658
      c8cf6513
  8. 07 Oct, 2020 1 commit
    • Albert Astals Cid's avatar
      Remove the ooo plugin · 62d7a693
      Albert Astals Cid authored
      As mentioned on the Akademy meeting, just use the calligra okular plugins if you want to open an odt/odp in Okular
      62d7a693
  9. 05 Oct, 2020 2 commits
  10. 03 Oct, 2020 3 commits
  11. 30 Sep, 2020 11 commits
  12. 29 Sep, 2020 2 commits
  13. 26 Sep, 2020 1 commit
  14. 25 Sep, 2020 4 commits
    • Antoni Bella Pérez's avatar
      [doc] Applied changes for: · a62666cf
      Antoni Bella Pérez authored
      URL changed from http to https
      Use more entities
      Remove 'latex' entity from header, already included to general.entities
      a62666cf
    • Kezi Olio's avatar
      Fix forms when inertially scrolling · bdb2df77
      Kezi Olio authored and Nate Graham's avatar Nate Graham committed
      `setViewport` automatically adds an item to the history if it finds that it
      moved for more than a page, which we don't want to do when automatically
      scrolling, as with inertial scrolling.
      
      This commit adds a new function `setViewportWithHistory()` which takes an
      argument to optionally avoid preserving history. This avoids breaking ABI.
      The new history-less functionality is used when inertially scrolling.
      
      BUG: 421354
      FIXED-IN: 1.11.2
      bdb2df77
    • Script Kiddy's avatar
      SVN_SILENT made messages (.desktop file) - always resolve ours · 601e9603
      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"
      601e9603
    • Script Kiddy's avatar
      SVN_SILENT made messages (.desktop file) - always resolve ours · 21647201
      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"
      21647201
  15. 24 Sep, 2020 2 commits
    • Albert Astals Cid's avatar
      Remove CI workaround · 1f187211
      Albert Astals Cid authored
      1f187211
    • Nate Graham's avatar
      Add option to disable smooth scrolling · 122528d3
      Nate Graham authored
      Even though the animated smooth scrolling transitions are now affected
      by the global animation speed setting in Plasma, this is not totally
      satisfactory for the full pool of people who hate smooth scrolling, as
      it does not address the cases of people using Okular outside of Plasma
      or people who generally want animations but just not in Okular's
      scrolling implementation.
      
      Accordingly, there is now a GUI option to disable smooth scrolling in
      Okular's settings window.
      
      BUG: 420755
      FIXED-IN: 20.12
      122528d3