Pavel Sanda
f664498ba7
typo
2023-04-13 21:36:17 +02:00
Jean-Marc Lasgouttes
d828728cc9
Revert "Automatically adjust tab stop width"
...
The fix is more complicated than that
This reverts commit bb16efc07e
.
2023-04-11 14:19:20 +02:00
Daniel Ramoeller
bb16efc07e
Automatically adjust tab stop width
...
Extend tab stops to the same indentation point instead of a fixed number of spaces.
Fix for bug #12736
2023-04-11 13:36:52 +02:00
Scott Kostyshak
7368e5be2b
Amend 1dc66608
...
Declare override, otherwise we get the following warning:
src/insets/InsetListings.h:42:7: error: 'isEnvironment' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
bool isEnvironment() const { return !params().isInline(); }
^
src/insets/Inset.h:606:15: note: overridden virtual function is here
virtual bool isEnvironment() const { return getLayout().latextype() == InsetLaTeXType::ENVIRONMENT; }
^
1 error generated.
2023-04-10 13:14:15 -04:00
Juergen Spitzmueller
b42e978080
Do not switch dir with numbers and babel in full unicode
...
Patch by Udi Fogiel
2023-04-10 15:31:26 +02:00
Juergen Spitzmueller
8917cb3cc8
luabidi's \\LR[E] needs to be embraced (possibly a LuaTeX bug)
...
without the grouping, trailing text disappears
2023-04-10 15:16:20 +02:00
Juergen Spitzmueller
2abde5d162
Inset::forceLTR() only determines whether explicit switches are needed
...
(as opposed to InsetLayout::forceLTR()). So properly set this for ERT
and remove downstream special casing
2023-04-10 10:20:11 +02:00
Juergen Spitzmueller
767f3e5b81
Fix spacing in forceLTR for classic latex
2023-04-10 08:37:04 +02:00
Juergen Spitzmueller
e9c8b10c1d
Do not forceLTR math with Xe/Lua (part of #12731 )
2023-04-10 08:24:46 +02:00
Juergen Spitzmueller
f058442be9
Put forceLTR (display) environments in LRE environment rather than command
...
This fixes whitespace issues.
2023-04-10 08:10:51 +02:00
Juergen Spitzmueller
1dc666082e
Add Inset::isEnvironment()
...
This usually returns InsetLayout::isEnvironment(), but listings has
specific conditions (depending on whether it is inline or not)
2023-04-10 08:09:32 +02:00
Juergen Spitzmueller
61f2cd27a8
Fix indentation
2023-04-09 15:01:17 +02:00
Juergen Spitzmueller
7b6707fc52
Properly resolve undefined citations with Xe/Lua and bibliography environment
...
These need an extra LaTeX run
2023-04-08 19:25:30 +02:00
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