Juergen Spitzmueller
833f8c148e
Limit QEvent::ApplicationPaletteChange casing to Mac
...
This is not needed on Linux and dramatically slows down runtime mode
change
2023-06-11 12:43:30 +02:00
Juergen Spitzmueller
3af906e9f3
Fix crash on OS-switch of dark/light mode ( #12786 )
...
At least for Mac and Linux. Windows needs testing and possibly its
own fix.
2023-06-10 08:30:31 +02:00
Juergen Spitzmueller
92f211d6b4
Replace deprecated function
...
activateWindow() is available back to Qt4 (at least)
2023-05-17 08:56:12 +02:00
Stephan Witt
ac286e54b7
#12769 correct line width based painting of wavy underline
...
With very tiny fonts the line width is 0 and the loop to construct the wavy line never ends.
2023-05-15 07:06:44 +02:00
Juergen Spitzmueller
90d40eb95e
Add labels to encoding variant combo
2023-05-13 18:38:33 +02:00
Juergen Spitzmueller
75f628aec0
Replace removed signal
...
The used one has been removed from Qt6
2023-05-12 09:46:38 +02:00
Juergen Spitzmueller
120ba1d3ec
Do not attempt to read bitmap icon with svg renderer
...
Pavel, this should cure your woes
2023-05-12 09:39:20 +02:00
Juergen Spitzmueller
0a040d18ad
Some layout fixes
...
Layout was too squeezed and didn't properly expand on longer (l7n) strings
2023-05-11 17:46:16 +02:00
Pavel Sanda
918146addd
Fix DocBook case
2023-05-11 15:29:14 +02:00
Jean-Marc Lasgouttes
6fbc8c6352
Fixup 7f1b1729: restore lazy caret handling
...
For some reason, the code that should have been put in
updateCaretGeometry() went to resetCaret(). I do not see how that made
sense.
I am not totally sure what the consequences of the patch are, though.
It just "looks right".
2023-05-11 10:13:27 +02:00
Pavel Sanda
16da5ef010
* LanguageUi.ui - change layout.
...
This pane is responsible for horizontal excess size (at least in CZ
translation) of document settings panel. The reason is second encoding combo
which get very lengthy (there are actually 3 of them).
This patch moves them to separate line.
Beware, touching this panel is headache.
Qt Designer (5.15.2) does not know even how to load this ui
file correctly and it's impossible to move unicodeEncodingCO.
When breaking layout this CO is mysteriously deleted.
Finally I gave up and simply edited file in vim to get COs to the new row.
2023-05-09 20:33:42 +02:00
Pavel Sanda
75d731c9d8
* OutputUi.ui - Reorganize Output pane so it takes less vertical space.
2023-05-09 19:06:26 +02:00
Pavel Sanda
20b45cf028
* Document prefs: rename Format -> Output
2023-05-09 19:05:31 +02:00
Pavel Sanda
c3613f1f17
* PrefDocHandlingUi.ui - add naming for emergency file
2023-05-09 18:35:00 +02:00
Jean-Marc Lasgouttes
e454deba2c
Revert "Move Fullscreen preferences from Editing>Control section into Look & Feel>User Interface section"
...
I pushed it by mistake.
This reverts commit 4d31e20d7d790554aab655ae11c9cd0dd4a6d6f1.
2023-05-05 21:23:21 +02:00
Yuriy Skalko
4d31e20d7d
Move Fullscreen preferences from Editing>Control section into Look & Feel>User Interface section
2023-05-05 19:21:37 +02:00
Jean-Marc Lasgouttes
21dcb4782f
Never not show caret when window does not have focus
...
A non blinking cursor could appear when hovering on inset button.
Fixes bug #12762 .
2023-05-03 12:22:52 +02:00
Jean-Marc Lasgouttes
89db357cd6
Code factoring: introduce BufferView::busy()
...
The WorkArea should not have to look at details of the undo stack.
No change intended.
2023-05-03 11:57:31 +02:00
Daniel Ramoeller
dfc3db773a
Fixup 89394bcd: handle cursor keys from keypad
...
Due to a macOS peculiarity, it is necessary to handle KeypadModifier.
We do it unconditionnally, although only macOS seems to be affected.
"Note: On macOS, [...] The KeypadModifier value will also be set when
an arrow key is pressed as the arrow keys are considered part of the
keypad." (https://doc.qt.io/qt-6/qt.html#KeyboardModifier-enum )
Related to bug #12572 .
2023-05-03 11:25:06 +02:00
Enrico Forestieri
17b24cf480
Re-enable QWindowsMimeMetafile with Qt6
...
Qt 6.5.0 has dropped support for the QWindowsMime class
in favor of a new QWindowsMimeConverter class. They say:
"If you have implementations of QWindowsMime or QMacMime in Qt 5,
then those will almost directly translate to the new APIs but
require less boiler-plate code to register the converters with Qt."
This may be true, but in practice they break binary compatibility with
previous versions. If you used the QWindowsMime class until Qt 6.4 by
using boiler-plate code to register the converters with Qt, you now
need to modify the sources and recompile. Fantastic!
2023-04-28 23:34:01 +02:00
Pavel Sanda
c6a190d480
Centralize use of "all files" wildcard in dialogs so it's consistent.
2023-04-28 21:59:37 +02:00
Pavel Sanda
a42a57a0b6
Increase hint verbosity, otherwise difficult to understand.
2023-04-27 21:24:49 +02:00
Pavel Sanda
7f614397ed
typo
2023-04-14 10:53:37 +02:00
Juergen Spitzmueller
3a02e477a0
Sync doc CT settings with dialog-external change of status ( #12703 )
2023-03-21 10:24:34 +01:00
Juergen Spitzmueller
5ad6cbb1d8
Fix signal order ( #12712 )
2023-03-18 15:58:04 +01:00
Jean-Marc Lasgouttes
98b5a16793
Fix completion in math when inline completion was not yet shown (take 2)
...
Better version of b4211ef2: we handle the case of a unique completion early.
Fixes bug #12674 .
2023-03-16 11:58:49 +01:00
Jean-Marc Lasgouttes
fb1c4494ea
Revert "Fix completion in math when inline completion was not yet shown"
...
A better fix is in the works.
This reverts commit b4211ef206827f85378b9392472fdc14e1e9f6c4.
2023-03-16 11:58:49 +01:00
Jean-Marc Lasgouttes
05469a053f
revert/fixup 309f8f4b: setFilterRegularExpression was introduced in Qt 5.12.
2023-03-12 13:05:58 +01:00
Juergen Spitzmueller
7cde89ece7
Remobe static icon sizing which seems to play bad with HiDpi
2023-03-11 18:30:44 +01:00
Juergen Spitzmueller
466e6eb613
Remove workaround for Qt version which is no longer supported
2023-03-11 16:43:08 +01:00
Juergen Spitzmueller
31a197d88c
Fix signals
2023-03-11 16:25:25 +01:00
Juergen Spitzmueller
548c5ba92d
Two more icon scale fixes
2023-03-11 16:10:52 +01:00
Juergen Spitzmueller
8863d6d785
Properly scale some icons for HiDPI ( #12695 )
2023-03-11 14:49:07 +01:00
Yuriy Skalko
2b6b20ff69
Include QScreen header to fix compilation with Qt 5.14
...
Needed after e2e1fd6ea9.
2023-03-10 09:18:59 +01:00
Daniel Ramoeller
2ed5b4a705
Fix text color of "file changed on disk" notification
...
Adjusts the label color of the notification to the background.
Fix for #12690 .
2023-03-09 16:13:00 +01:00
Pavel Sanda
4cccec60ca
Improve tooltip.
2023-03-09 10:23:46 +01:00
Juergen Spitzmueller
c227a4af41
Check for invalid indexes in Module selection
...
This should fix crashes when moving with pressed mouse buttons on
category nods
2023-03-08 08:24:38 +01:00
Jean-Marc Lasgouttes
e2e1fd6ea9
QDesktopWidget is not required in Qt5, the Qt6 code works
2023-03-05 21:54:08 +01:00
Jean-Marc Lasgouttes
9156843ec2
QWidget::setContentsMargins is supported in Qt5
2023-03-05 21:37:01 +01:00
Juergen Spitzmueller
739905862f
Address deprecation
...
See https://doc.qt.io/qt-6/qbytearray-obsolete.html
2023-03-03 11:37:39 +01:00
Jean-Marc Lasgouttes
309f8f4b40
Remove two remaining snippets from the QRegExp era.
2023-03-03 11:17:58 +01:00
Jean-Marc Lasgouttes
263da2fa20
Remove use of QRegExp
...
QRegexp has been replaced with QRegularExpression in Qt5. Now that we
have dropped support for Qt4, there is no need for keeping it around.
2023-03-03 10:49:32 +01:00
Jean-Marc Lasgouttes
88c1ed9e32
Remove dead code which is deprecated in Qt6
2023-03-03 10:48:51 +01:00
Pavel Sanda
06928c914f
* SpellcheckerUi fix casing in tooltip
2023-03-03 10:45:46 +01:00
Pavel Sanda
96eb65dc32
Spellcheck - more verbose tooltip.
2023-03-02 22:01:17 +01:00
Juergen Spitzmueller
5cb8733660
trim trailing linebreak
2023-02-27 12:16:04 +01:00
Pavel Sanda
2b6ef1257a
Infoinset - better specification of few strings
2023-02-25 18:52:31 +01:00
Pavel Sanda
b4ed627ecc
Fogotten case for replacing $$python.
...
Patch from Jose.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg219385.html
2023-02-24 19:44:37 +01:00
Juergen Spitzmueller
41d95a45d9
Properly reset tree depth in outliner with keep when outliner is re-filled
...
Fixes a 13 year old bug (#6675 )
2023-02-22 15:24:15 +01:00
Juergen Spitzmueller
08fc56486e
Whitespace
2023-02-22 14:53:25 +01:00