Skip to content

Commit

Permalink
Prevent unnecessary scroll jumps on undoing/redoing
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujan committed Dec 11, 2021
1 parent 712d9a8 commit e546150
Show file tree
Hide file tree
Showing 40 changed files with 62 additions and 40 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ V0.10.0
* Scroll one page per wheel turn when the cursor is on the vertical scrollbar and half the page when Shift is also pressed.
* Scroll the view up/down by a single step without moving text cursor with Ctrl+Up/Down. Also, scroll the view up/down by one page without moving text cursor with Ctrl+PageUp/PageDown.
* Don't try to save or restore window position under Wayland because, otherwise, menus might appear at wrong positions.
* Don't let QTextEdit's built-in undo/redo shortcuts cause a scroll jump when there's nothing to undo/redo.

V0.9.0
---------
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Latest version:

23 Nov 2021, V0.10.0
11 Dec 2021, V0.10.0

See "ChangeLog" for changes.
2 changes: 2 additions & 0 deletions feathernotes/about.ui
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Catalan:</span> Joan Miró</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Chinese:</span> You-Sheng Yang <a href="https://github.com/vicamo">(vicamo at GitHub)</a>, <a href="https://github.com/BavonChao">BavonChao at GitHub</a>, <a href="https://github.com/theyearthewas">theyearthewas at GitHub</a>, <a href="https://github.com/Python-37">Python-37 at GitHub</a></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Czech:</span> <a href="https://github.com/p-bo">p-bo at GitHub</a>, <a href="https://github.com/pafri">pafri at GitHub</a></p>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_ar_DZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_be.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_bg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Лиценз</translation>
</message>
Expand Down
8 changes: 4 additions & 4 deletions feathernotes/data/translations/feathernotes_ca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Llicència</translation>
</message>
Expand Down Expand Up @@ -1783,7 +1783,7 @@ Takes effect after closing this dialog.</source>
<message>
<location filename="../../prefDialog.ui" line="434"/>
<source>Spell Checking</source>
<translation type="unfinished"></translation>
<translation type="unfinished">Comprovació ortogràfica</translation>
</message>
<message>
<location filename="../../prefDialog.ui" line="442"/>
Expand Down Expand Up @@ -1881,7 +1881,7 @@ name but ending with &quot;.aff&quot;.</source>
<message>
<location filename="../../spellDialog.ui" line="62"/>
<source>Replace with:</source>
<translation type="unfinished"></translation>
<translation type="unfinished">Reemplaça per:</translation>
</message>
<message>
<location filename="../../spellDialog.ui" line="87"/>
Expand Down Expand Up @@ -1918,7 +1918,7 @@ name but ending with &quot;.aff&quot;.</source>
<location filename="../../domitem.cpp" line="100"/>
<location filename="../../domitem.cpp" line="137"/>
<source>New Node</source>
<translation type="unfinished"></translation>
<translation type="unfinished">Nou node</translation>
</message>
</context>
</TS>
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licence</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_da.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Lizenz</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Άδεια χρήσης</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_eo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licenco</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licencia</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_et.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Litsents</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_fa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>مجوز</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_fi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Lisenssi</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licence</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_he.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>רישיון</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_hr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_hu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licenc</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Lisensi</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licenza</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>ライセンス</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>라이센스</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_lt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licencija</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_nb_NO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Lisens</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licentie</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licencja</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licença</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_pt_BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licença</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Лицензия</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_si.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_sk_SK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Licencia</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Lisans</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>Ліцензія</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>许可证</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/data/translations/feathernotes_zh_HANT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<context>
<name>FeatherNotes::AboutDialog</name>
<message>
<location filename="../../about.ui" line="157"/>
<location filename="../../about.ui" line="159"/>
<source>License</source>
<translation>許可證</translation>
</message>
Expand Down
Loading

0 comments on commit e546150

Please sign in to comment.