Juergen Spitzmueller
6ec6db8cd9
Fix crash when copying multiple cells in table
...
while having done "backwards" selection (selBegin() in a later
column/row than selEnd())
2023-04-08 16:55:41 +02:00
Juergen Spitzmueller
849d0c81ca
Record babel use for single par preview
2023-04-02 14:51:47 +02:00
Juergen Spitzmueller
84dde6aeb9
Fix indentation
2023-04-02 12:31:41 +02:00
Daniel Ramoeller
211554d0df
Fix bug #12721 .
2023-03-30 16:12:08 -04:00
Juergen Spitzmueller
3a02e477a0
Sync doc CT settings with dialog-external change of status ( #12703 )
2023-03-21 10:24:34 +01:00
Jean-Marc Lasgouttes
1d637b8af0
Spaces in typewriter font never expand in justified text
...
This fixes on-screen appearance of things like code with lines longer
than the window width.
The TeXbook makes it clear by indicating that \fontdimen3 == 0 for
these fonts.
2023-03-18 21:03:42 +01:00
Jean-Marc Lasgouttes
f24bb4a919
Remove indentation on screen after a plain separator inset
...
Fixes bug #12700 .
2023-03-18 19:47:42 +01:00
Juergen Spitzmueller
5ad6cbb1d8
Fix signal order ( #12712 )
2023-03-18 15:58:04 +01:00
Juergen Spitzmueller
81d6965c81
Do not swap parens and stuff with babel and Xe/LuaTeX
2023-03-17 18:11:38 +01:00
Jean-Marc Lasgouttes
e2011856bc
Fixup a2378c1182
: handle the monospace case
...
When the font is tt, the stretch space is null. Change the display
rendering to accomodate that.
2023-03-17 14:27:15 +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
Richard Kimberly Heck
7bcf201f40
Fix bug #12707
2023-03-15 23:24:47 -04:00
Jean-Marc Lasgouttes
175bcc6efc
Fixup 00c39208
: initialise ParagraphMetrics::id_ in default constructor
...
This was missing. Spotted by coverity.
2023-03-15 23:38:16 +01:00
Jean-Marc Lasgouttes
a2378c1182
Improve display of ellipsis special char
...
Follow the TeXbook and use a half space as separation.
2023-03-15 12:25:19 +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
Jean-Marc Lasgouttes
7d78078838
When a displayed inset is aligned left, align it left
...
The use of LYX_ALIGN_BLOCK was a mistake.
Fixes bug #12683 .
2023-03-05 20:59:35 +01:00
Jean-Marc Lasgouttes
f7de345f85
Avoid row breaking at inconvenient places.
...
The test that was used to avoid breaking a string that was followed
by a too long element was not correct (especially the part that
compared with total row width).
Typical example here is:
- a word with a part that has a font change like /un/breakable;
- a longish sentence after it.
Use a new test that is good enough for this particular case, although
with sortcomings. I do not want to overcomplicate and prefer to wait
for other complaints (this code is already more complicated that I
would like).
Document known shortcoming.
Fix ticket #12660 .
2023-03-03 17:24:06 +01:00
Juergen Spitzmueller
e6966647fd
Fix intitle context checking for info insets
2023-03-03 14:54:52 +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
Jean-Marc Lasgouttes
00c39208ac
At metrics time, store paragraph id too
...
Instead of actually fixing the messiness of InsetInfo, let's just fix
the symptom and avoid the access to Paragraph::id() that was crashing
LyX every time updateBuffer/validate/metrics/draw did not happen in
the right order.
Fixes bug #12639 .
2023-03-03 10:34:18 +01:00
Pavel Sanda
190d2ba2c3
* doxy - correct whitespacing.
2023-03-02 22:03:09 +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
9bbec4a75a
Fix #12678 .
2023-02-26 22:30:17 +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
c5e4043fa3
Warn user when OUTLINE_IN/OUT is about to flatten the structure ( #11178 )
2023-02-22 17:31:32 +01:00
Scott Kostyshak
83af3dfd29
Fix equation numbers after row operation ( #12665 )
...
After removing/adding rows, the corresponding equation numbers in
the LyX display were not updated (although if you clicked outside
the math inset they were).
Now they are updated immediately after the operation.
2023-02-22 11:12:56 -05:00
Juergen Spitzmueller
8fd1aaa46e
Fix another old outliner bug ( #9375 )
...
Parts, chapters and sections have different LabelTypes, but this does
not mean they cannot be transformed into each other while doing
OUTLINE_IN/OUT
Not sure why the labeltype check is here anyway, but let's keep it.
2023-02-22 16:33: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