Pavel Sanda
fb43449c80
Hide multi-keystroke accelerators in Mac menu (bug 12693).
...
Patch from Juergen.
2023-07-05 20:45:26 +02:00
Daniel Ramoeller
28a9124241
Fix combined zoom widget on windows (bug #12803 ).
2023-07-04 19:08:51 +02:00
Pavel Sanda
9d8bef017b
Add bug reference.
2023-07-03 23:54:34 +02:00
Juergen Spitzmueller
d5a9699794
Fix inset context menu offset with keyboard ( #12811 )
2023-07-03 16:28:38 +02:00
Scott Kostyshak
f14384ff91
Add "override" to fix warning
...
Otherwise we get the following warning:
src/frontends/qt/InsertTableWidget.h:44:7: error: 'hideEvent' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
void hideEvent(QHideEvent * event);
^
Amends ca5a75b2
.
2023-06-19 14:52:45 -04:00
Daniel Ramoeller
ca5a75b23e
Properly uncheck insert table toolbutton
...
Fix for bug #12801
2023-06-18 12:20:35 +02:00
Daniel Ramoeller
c13c959974
Fix margins and spacing of InsetParamsUI
...
Fix for bug #12244 .
2023-06-15 04:18:36 -04:00
Daniel Ramoeller
7371a99256
Fix for HiDPI logo in About
...
Fix for #12322 .
2023-06-13 09:56:48 -04:00
Pavel Sanda
152811a27d
Activate work area by tab click.
...
Fix for #11835 .
Patch by Daniel Ramoeller.
2023-06-13 12:11:11 +02:00
Yuriy Skalko
2475a6a616
Move Fullscreen preferences from Editing>Control section into Look & Feel>User Interface section
2023-06-13 11:28:31 +02:00
Pavel Sanda
afb918bf78
Fix for #12681 .
...
Number Paste Recent menus entries as in toolbar.
Slightly improved patch from Daniel Ramoeller.
2023-06-13 10:07:56 +02:00
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 4d31e20d7d
.
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 b4211ef206
.
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
Juergen Spitzmueller
ceb03b1815
Amend 4cd568d312
2023-02-22 14:35:53 +01:00
Juergen Spitzmueller
4cd568d312
Do not change outliner tree depth when not appropriate
...
This fixes expansion/collapsing on double-click (#12672 )
2023-02-22 14:23:04 +01:00
Jean-Marc Lasgouttes
b4211ef206
Fix completion in math when inline completion was not yet shown
...
It is necessary to set finish=true when the completion is unique.
Otherwise, one gets \upsilon instead of the proper glyph.
Fixes bug #12674 .
2023-02-22 12:02:10 +01:00
Juergen Spitzmueller
1e99920b35
Disable zoom in/out buttons when threshold is reached ( #12676 )
2023-02-22 11:16:46 +01:00
Pavel Sanda
3a72e2c76b
lyxpaperview - fix viewer calls with additional arguments
2023-02-19 22:35:21 +01:00
Pavel Sanda
5b69f6899f
Another case of statusTip
2023-02-19 19:22:48 +01:00
Pavel Sanda
c629d11c43
citationSearchCB statusTip -> toolTip
2023-02-19 19:15:25 +01:00
Juergen Spitzmueller
29a8097c3c
Make string-widget combination more l7n friendly
...
This allows to adjust the minutes widget within the syntax of the language
2023-02-16 15:25:33 +01:00
Juergen Spitzmueller
536bcb0d7b
Amend ef2ca233d6
2023-02-16 14:55:55 +01:00
Juergen Spitzmueller
ef2ca233d6
Differentiate backups from autosave files ( #12659 )
2023-02-16 14:42:44 +01:00
Pavel Sanda
76daf33dd5
* Adv FindAndReplace - add spacer to visually distinguish groupbox.
2023-02-15 21:25:22 +01:00
Pavel Sanda
065f125b61
Disentangle tooltip in Character dialog and FindAndReplace pane.
2023-02-15 21:18:11 +01:00
Pavel Sanda
dce4ff82b4
* ui: Latex -> LaTeX
2023-02-15 21:16:39 +01:00
Juergen Spitzmueller
c1168f35d7
tiny correction
2023-02-15 11:46:37 +01:00
Juergen Spitzmueller
bfab8f9435
Escape single quotes in bformat string
2023-02-15 11:45:16 +01:00
Juergen Spitzmueller
879aa03a3e
Add some tooltips wrt document backup
2023-02-15 11:22:19 +01:00
Juergen Spitzmueller
03ced49d9f
whitespace
2023-02-12 14:37:35 +01:00
Juergen Spitzmueller
ced6c591fb
Silence warning when unappropriate
2023-02-12 14:33:27 +01:00
Jean-Marc Lasgouttes
f0b60d0b4e
fix comment.
2023-02-08 12:28:01 +01:00
Juergen Spitzmueller
713264ae2b
Disable "search in selection only" with instant search
...
These two do not go well together. Making it work requires some major
overhaul of selection while searching (see #12655 )
2023-02-07 14:48:09 +01:00
Jean-Marc Lasgouttes
418fd911f8
Revert "Extended comment and indentation for source code"
...
This was pushed by mistake. A different version of this patch will
eventually be committed.
This reverts commit 439c099124
.
2023-02-01 00:12:14 +01:00
Daniel Ramoeller
439c099124
Extended comment and indentation for source code
...
- automatically inherit indentation from previous block
- (un)indent blocks
- (un)comment blocks
- add feature to show tabs and spaces
2023-02-01 00:09:49 +01:00
Juergen Spitzmueller
2371bfdf15
Fix font combos with Qt6 ( #12630 )
...
Use CategorizedCombos methods to properly access the model
2023-01-30 08:46:36 +01:00
Juergen Spitzmueller
b260ff8b27
Allow to hide categories in CategorizedCombo
...
font combos do not need that
2023-01-30 08:45:58 +01:00
Scott Kostyshak
2ccaefa8a1
Fix -Winconsistent-missing-override
...
Fix the following warning:
src/frontends/qt/GuiDocument.h:377:7: error: 'eventFilter' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
bool eventFilter(QObject * sender, QEvent * event);
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:139:18: note: overridden virtual function is here
virtual bool eventFilter(QObject *watched, QEvent *event);
^
Amends 62413580de
.
2023-01-25 10:56:40 -05:00
Daniel Ramöller
62413580de
Fix bug #12061 .
2023-01-23 18:05:26 -05:00
Daniel Ramoeller
f608328059
Allow multiple selections in the file open dialog
...
Fix for bug #4315 .
2023-01-09 15:52:33 +01:00
Richard Kimberly Heck
30189332c8
Fix minor bug mentioned in #10827
2023-01-04 23:23:30 -05:00
Juergen Spitzmueller
69d54ff9d8
Master/Child: do not clean includeonly list while editing (part of #12470 )
2022-12-27 15:36:36 +01:00
Juergen Spitzmueller
4c8a698a28
MasterChild.ui: Group radio buttons (part of #12470 )
2022-12-27 15:10:37 +01:00
Juergen Spitzmueller
14d74c9578
Try to be more precise in the hyperlink type tooltips
2022-12-26 10:46:54 +01:00
Juergen Spitzmueller
5f8e41dc9b
GuiHyperlink: some minor fixes
...
* disambiguate "Other" label
* Add accelerator
* Add tooltip to "Other" widget
* Amend tooltip of "Web" widget (since "other" now seems to have taken
part of its function)
2022-12-26 10:13:51 +01:00
Richard Kimberly Heck
144cf4bb9a
Allow an 'other' type for hyperlinks. Format change.
...
Also, perform the URL fixing magic for DocBook and XHTML.
As it was, it was impossible to enter e.g. "tel:" type links. Now
choosing the "Other" type just outputs the URL as given.
Also, the addition of "http" or "file" was not being done for
DocBook and XHTML. Now it is.
2022-12-25 12:45:48 -05:00
Juergen Spitzmueller
064955b151
Used pressed() signal in status bar widgets ( fixes #12613 )
2022-12-24 07:20:39 +01:00
Juergen Spitzmueller
f06ddb2342
Fix signals
2022-12-23 16:07:47 +01:00
Juergen Spitzmueller
d90484de0a
Fix UI of document color selection
...
The coloring of push buttons does not work with all themes, so use a
dedicated widget.
Also, accelerators have been used multiple times.
2022-12-23 09:17:01 +01:00
Juergen Spitzmueller
7015d7db07
Mark "edit externally" button of preamble and local layout
...
while external editing is underway
2022-12-23 08:19:26 +01:00
Juergen Spitzmueller
d888d0d130
Inform user if panel or tab has invalid content ( #10827 )
...
This adds a warning icon to either the tab header or the panel stack
entry item if a widget on the panel/stack has invalid content.
Particularly helpful to get aware of such content on other tabs/panes
than the one currently selected.
2022-12-22 15:01:58 +01:00
Juergen Spitzmueller
4a3871f5db
Add toolbar option to reset font + language settings ( #12199 )
2022-12-18 16:36:30 +01:00
Juergen Spitzmueller
23a2920dae
Remove preceding spaces
2022-12-15 08:39:52 +01:00
Richard Kimberly Heck
fdabd46e8e
Fix shortcut
2022-12-12 17:36:07 -05:00
Richard Kimberly Heck
88f0a98b52
Fix bug #12609
2022-12-12 17:33:56 -05:00
Richard Kimberly Heck
bbe2ee10a4
Pronoun
2022-12-12 17:18:35 -05:00
Juergen Spitzmueller
163844a6d0
Allow defaultfamily change with non_TeX fonts ( #12608 )
2022-12-11 14:47:13 +01:00
Juergen Spitzmueller
c7c3b39413
Minor checkedLineEdit fixes
...
* Do not disallow application if an invalid widget is disabled
* Fix coloring of text
2022-12-11 10:01:09 +01:00
Daniel Ramoeller
bfff93d879
Restrict toolbar menu to toolbar
...
Partial fix for bug #11949 .
2022-12-10 20:30:58 +01:00
Jean-Marc Lasgouttes
46992201b7
Add != operator to FuncRequest and special value FuncRequest::prefix
...
Use this value (and `unknown' where relevant)
2022-12-10 20:30:58 +01:00
Scott Kostyshak
9f7bbeadda
Change Doc Settings "Edit" PB to "Edit Externally"
...
"Edit" by itself is not clear if the user doesn't already know what
it does.
This affects both the local layout tab and the LaTeX preamble tab.
Brief ML discussion here:
https://www.mail-archive.com/search?l=mid&q=20221202193312.myfnuhuz6xcil6qt%40gary
2022-12-10 10:02:48 -05:00
Juergen Spitzmueller
7f1cb306f9
Warn if buffer is switched with unapplied document changes ( #9369 )
2022-12-10 14:28:46 +01:00
Stephan Witt
deae5ea23a
Follow-up for change a66ee4109e
- guard Qt 5.4 code with version check
2022-12-08 18:05:37 +01:00
Stephan Witt
a66ee4109e
Add OS version info to About box.
2022-12-07 00:08:11 +01:00
Jean-Marc Lasgouttes
f3f478c2fb
C++11 compilation fix
2022-12-06 17:12:45 +01:00
Juergen Spitzmueller
6c904004b6
More refs sorting fixes
...
This now uses a Vector of pairs, which is more robust with non-unique
labels (e.g. in change tracking).
2022-12-05 09:45:40 +01:00
Richard Kimberly Heck
d4f2460ac4
Fix bug #11410 .
...
Main part of patch from Daniel, adapted by me.
I also added the lyx2lyx code.
2022-12-04 18:33:58 -05:00
Juergen Spitzmueller
3ec87be050
Fixup refs sorting
...
This has been broken at df59649a18
2022-12-04 16:21:14 +01:00
Juergen Spitzmueller
abd69b06f4
Fixup refs grouping
...
This has been broken at df59649a18
2022-12-04 15:32:47 +01:00
Daniel Ramoeller
7bdf372ecc
Properly reset on ESC key on LayoutBox/CategorizedCombo
...
Fix for bug #12497 .
2022-12-04 13:45:49 +01:00
Richard Kimberly Heck
233ce1ec12
Partially fix bug #10827 . Patch from Daniel, slightly modified by me.
2022-12-03 22:44:05 -05:00
Juergen Spitzmueller
c4b1f7b31c
Some string fixes in compare UI
2022-12-03 15:21:15 +01:00
Scott Kostyshak
c7269ffa86
Comment
2022-12-02 19:34:36 -05:00
Scott Kostyshak
a41b866e60
Line width
2022-12-02 19:29:04 -05:00
Scott Kostyshak
6f9cfdea7e
Comment
...
Jürgen confirms that the behavior in #8493 is present with Qt6.
2022-12-02 19:28:10 -05:00
Jean-Marc Lasgouttes
9376f0203d
Merge branch 'killqt4'
...
Remove all trace of Qt4 support. The different elements have been
considered carefully before removal.
The only changes that need to be done concern Windows and macOS
compilation instruction and will need to be taken care of by the
respective maintainers before prerelease.
The file TODO.killqt4 lists what remains to be done.
2022-11-28 15:19:41 +01:00
Richard Kimberly Heck
5db9e91f16
Fix bug #11781 . Patch from Daniel.
2022-11-27 13:20:17 -05:00
Daniel Ramoeller
2d01fcd079
Activate another tab group (aka split view)
...
Bind the new functions tab-group-next/previous to F6/S-F6 in CUA bindings.
Fix for #12115 .
2022-11-27 18:52:05 +01:00
Jean-Marc Lasgouttes
cd5fe091d2
Stephan has checked that caching is still needed on macOS
...
Basically removing the cache makes getTextLayout 17x more expensive on
a simple test of scrolling through the Tutorial.
2022-11-25 12:44:56 +01:00
Jean-Marc Lasgouttes
c24233e3f1
Improve replacement for qDegreesToRadians
...
This is for Qt 5.0.X compatibility.
2022-11-25 00:07:37 +01:00
Scott Kostyshak
3b30dbfca4
Centralize cancelation of export
...
An export can be canceled by clicking on the status bar icon or by
executing export-cancel (e.g., via Document > Cancel Background
Process).
The centralized code kills the script and updates the status bar
icons.
No change in functionality intended.
Related commits: 70a71a82
and 01abab9a
.
2022-11-22 14:55:26 -05:00
Scott Kostyshak
01abab9ad9
After export-cancel, hide busy and cancel buttons
...
This is consistent with 70a71a82
(which is about the code path
through clicking on the 'x' status bar icon).
In the next commit I'll make a function to centralize this sequence
of killing a script and emitting the scriptKilled() signal.
2022-11-22 14:30:52 -05:00
Scott Kostyshak
70a71a824b
After confirm cancel, hide busy and cancel buttons
2022-11-22 14:24:11 -05:00
Juergen Spitzmueller
869247b617
Add button to stop processing
...
(rather than having it stop by clicking on the spinner)
2022-11-21 18:56:28 +01:00
Kornel Benko
43d506b104
Amend(2) 580dea63
: get rid of Qt4 code also in cmake build
2022-11-21 09:31:48 +01:00
Jean-Marc Lasgouttes
7d196fea77
Fix handling of codepoints 9, 10, 12, 13
...
Qt >= 5 refuses to display them. We work around this in lib/symbols
already, but make sure we do not try to display math glyphs at these
code points anyway.
Fixes bug #8493 .
2022-11-20 20:53:55 +01:00
Juergen Spitzmueller
e26a60edef
Regenerate previews after zoom ( #11919 )
2022-11-20 18:18:59 +01:00
Jean-Marc Lasgouttes
546efc3ff1
Remove a workaround that seems to be useless since Qt 4.8
2022-11-19 20:09:59 +01:00
Jean-Marc Lasgouttes
e11c7cb71d
Remove all uses of Q_WS_* macros
...
They are only defined with Qt4.
2022-11-19 19:53:28 +01:00
Jean-Marc Lasgouttes
a3327f576c
Get rid of setSectionResizeMode helper functions.
2022-11-19 15:04:38 +01:00
Jean-Marc Lasgouttes
11369131ee
Remove workaround that was needed only by Qt4
2022-11-19 14:58:50 +01:00
Jean-Marc Lasgouttes
0f8b4e36d8
Remove old workaround that was needed for Qt 4.2
...
Jürgen believes that this is not needed anymore.
2022-11-19 14:55:33 +01:00
Jean-Marc Lasgouttes
ac248e392d
Get rid of Qt4 code in src/
...
Qt4 code has been identidifed by
git grep -l 'QT_VERSION.*\(0x050000\|0x04\)' src
Uses of QT_VERSION_CHECK have been checked too.
been used to remember what places need further work.
Then remaining Qt4 references have been searched using
git grep -i qt4
git grep -i 'qt 4'
and relevant issues have been either fixed or noted in the new
TODO.killqt4 file.
2022-11-18 17:19:50 +01:00
Jean-Marc Lasgouttes
50e1bdf320
(almost) Fix Qt4 support
...
When is it detected that our zero-width characters are not really
zero-width, avoid to use them altogether. Currently, this is known to
happen in Qt4 with monospace fonts.
This allow to remove the special Qt4 code in breaskString_helper.
Related to bug #10117 .
2022-11-10 17:27:45 +01:00
Jean-Marc Lasgouttes
23cd38bc1c
Use TextLayoutHelper in x2pos and pos2x
...
This leads to substantial code simplification.
No intended behavior change.
Related to ticket #10117 .
2022-11-10 16:13:29 +01:00
Jean-Marc Lasgouttes
7fdc604606
Refactor GuiFontMetrics::getLayout
...
This allows to create a new version that takes an already built
TextLayoutHelper struct as parameter.
No intended change.
See discussion in bug #10117 .
2022-11-10 16:13:28 +01:00
Jean-Marc Lasgouttes
201c95a76e
Handle multiple spaces at row break
...
In order to work around the Qt row breaking algorithm, which considers
multiple spaces as one at QTextLine break, we insert word_joiner unicode
characters beteween each pair of spaces.
The TextLayoutHelper class makes it easy to handle that.
Update Row::Element::rtrim() to only remove one space at row end.
Update support::countExpanders() to count all spaces, without special
handling for consecutive ones.
Fixes bug #10117 .
2022-11-10 15:21:02 +01:00
Jean-Marc Lasgouttes
a48efa03b1
Introduce a struct to handle docstring <-> QString index translation
...
This new code allows to get rid of some hardcoded stuff and will be a
foundation for handling of consecutive spaces.
This code can be used in the future for getTextLayout, x2pos, and
pos2x in order to streamline code. Actually some features as the naked
parameter are here to prepare for this second set of changes.
No change intended. The modified code is much clearer, though.
Related to bug #10117 .
2022-11-10 12:06:15 +01:00
Jean-Marc Lasgouttes
a99f76477d
Revert "Fixup 572b06d6
: reduce cache size for breakString"
...
10MB cache is not so large after all, and it can be helpful with
Scott's perverse examples.
This reverts commit 2abe771407
.
Fixes part of bug #12598 .
2022-11-08 00:12:40 +01:00
Daniel Ramoeller
89394bcd0f
Show suggestions containing the input in the command buffer
...
Previously, only the suggestions starting with the current input were
shown.
Contains the following minor improvements:
- Add space to indicate when only one suggestion is found
- Select first item in suggestion-list in order to make selecting with
arrow keys more intuitive
- Fix selection with Shift+Up/Down in text-field
Fix for bug #12572 .
2022-11-04 22:27:31 +01:00
Juergen Spitzmueller
293b8dbe67
Do not unnecessarily reset the outliner to TOC on internal model changes
...
The activated() signal is only issued on user changes, what we want here,
not internal model changes (as with currentIndexChanged())
2022-11-02 12:33:20 +01:00
Juergen Spitzmueller
3a949b32f0
Merge branch 'master' into features/indexmacros
2022-10-29 11:42:14 +02:00