Jean-Marc Lasgouttes
56bd50ea6c
Move getFont and getLabelFont from InsetCollapsible to Inset
...
Also move around getLayout and isPassThru.
Part of investigation of bug #12204 .
2021-03-24 20:04:27 +01:00
Scott Kostyshak
b2b68c3ee7
Update tex2lyx tests
2021-03-24 13:08:28 -04:00
Jean-Marc Lasgouttes
d03435bc77
Remove tweaks of [pm]i.base.font in InsetCaption
...
Captions do not reset font settings (try to insert caption in emph context).
Part of investigation of bug #12204 .
2021-03-24 16:27:05 +01:00
Jean-Marc Lasgouttes
b37929fdb3
Remove unneeded InsetFootlike::metrics/draw() methods
...
The font is already set to the buffer font when called from
TextMetrics::redoParagraph and RowPainter::paintInset, because
inheritFont() is false.
Part of investigation of bug #12204 .
2021-03-24 16:25:43 +01:00
Kornel Benko
92a50fa273
Cmake build Qt6: Remove some redundant statements.
2021-03-24 11:42:39 +01:00
Thibaut Cuvelier
6102327d3b
Improve tool tip for the new DocBook MathML-prefix option.
2021-03-23 22:32:16 +01:00
Thibaut Cuvelier
7a1e048f44
Amend 0f782b0d
: add the required changes to lyx2lyx.
2021-03-23 21:12:45 +01:00
Thibaut Cuvelier
6a5288e31e
DocBook: add the MathML-namespace prefix in the GUI.
2021-03-23 00:32:45 +01:00
Thibaut Cuvelier
0f782b0ded
DocBook: add a parameter to change the namespace prefix for MathML.
2021-03-23 00:32:45 +01:00
Kornel Benko
02a3705496
Amend 635a7d77
: Allow compiling with Qt6 with cmake
...
Thanks Scott for checking.
TODO: Check compilation on Windows and Mac.
2021-03-22 16:19:10 +01:00
Enrico Forestieri
6fa973b377
Fix Qt6 deprecation warning about QString::fromUcs4
2021-03-21 17:15:08 +01:00
Juergen Spitzmueller
4a5ae39e8b
Revert "Fix Qt6 deprecation warning (QString::fromUcs4(uint))"
...
This reverts commit 52dff70641
.
2021-03-21 16:59:25 +01:00
Juergen Spitzmueller
2c553df178
Replace obsoleted signal
...
This has been obsoleted in Qt5 and dropped in Qt6
2021-03-21 12:51:38 +01:00
Juergen Spitzmueller
52dff70641
Fix Qt6 deprecation warning (QString::fromUcs4(uint))
2021-03-21 12:38:47 +01:00
Juergen Spitzmueller
15c6d4c6b3
Fix Qt6 deprecation warning (QMouseEvent::x() ::y())
2021-03-21 12:38:05 +01:00
Juergen Spitzmueller
cbc55548a3
Fix Qt6 deprecation warning (QEvent::globalPos())
2021-03-21 12:37:17 +01:00
Juergen Spitzmueller
b7f983bc47
Address Qt6 deprecation warning (QLibraryInfo::location())
2021-03-21 12:30:34 +01:00
Juergen Spitzmueller
9ccbc11bf3
Fix unused variable warning with Qt6
2021-03-21 12:30:01 +01:00
Eugene Chornyi
4421b721e4
Make all a synonym of any in cmd debug mode
2021-03-21 09:59:23 +01:00
Enrico Forestieri
34ffa80c4c
Fix latex syntax highlighting with Qt6
2021-03-17 10:17:10 +01:00
Enrico Forestieri
968be3f209
Fix copy&paste error
2021-03-17 08:59:04 +01:00
Pavel Sanda
4e2f8dbbeb
Qt4 compil fix
2021-03-16 09:39:05 +01:00
Enrico Forestieri
7cb2a10eb8
Amend 635a7d77
...
With a multiscreen setup and Qt6, make sure to get the geometry
of the screen containing the widget.
2021-03-15 18:35:58 +01:00
Enrico Forestieri
635a7d77dd
Allow compiling with Qt6
...
This commit allows compiling LyX with Qt6 when using autotools.
For a successful compilation the following 2 conditions must be met.
1) The Qt6 qmake has to come first in PATH, so that the command
"qmake -v | grep -o 'Qt version .'" returns "Qt version 6".
2) The --enable-qt6 switch has to be passed to the configure command.
If --enable-qt6 is used but Qt6 is not found, Qt5 is tried as a fallback.
If also Qt5 is not found, configuring for Qt4 is attempted.
If --enable-qt6 is not used, then things go as usual. This means that Qt5
is tried first and then Qt4, unless --disable-qt5 is used, in which case
Qt4 is directly attempted. This means that existing scripts should
continue working unmodified.
LyX should compile with Qt6 on windows and linux, and possibly also on
mac, but I could not test that. However, it is not guaranteed that it
works as it should. In particular I am not sure that I got right the
conversion from QRegExp to QRegularExpression. For sure, the syntax
highlighting seems to not work right. Someone in the know should take
a look at that. I am able to load documents and compile them but some
thourough testing is needed. However, when compiling for Qt5 or Qt4,
I tried to make sure that the functionality is preserved.
2021-03-15 17:09:09 +01:00
Juergen Spitzmueller
d5263f857e
Amend [1bf53d47a5b8/lyxgit]
2021-03-14 16:48:04 +01:00
Juergen Spitzmueller
1bf53d47a5
Use customizable zoom context menu
...
Based on a proposal by Daniel (#12187 )
2021-03-14 16:41:44 +01:00
Juergen Spitzmueller
d29d2f48fd
Toom value: back to QLabel, this time with custom context menu
2021-03-14 12:04:12 +01:00
Juergen Spitzmueller
663f198001
Properly set minimum width with QToolButton
2021-03-14 09:42:28 +01:00
Juergen Spitzmueller
ac1b3f0ba2
Fix indentation
2021-03-13 12:17:31 +01:00
Juergen Spitzmueller
b272e4bfb0
Fix ct in table cell pasting
2021-03-12 17:44:33 +01:00
Juergen Spitzmueller
ae892bff98
Fix copy of multi-cells in table ( #12196 )
2021-03-12 17:44:33 +01:00
Jean-Marc Lasgouttes
ac8948b8e0
Fixup 86bfa10a
: add checks before updating bookmarks
...
When doing cut and paste, it can happen that inset_owner_ is null, or
that the inset is not related to a buffer.
2021-03-12 17:42:02 +01:00
Yuriy Skalko
4ec5d33551
Set correct Windows console code page since all LyX output is in UTF-8
2021-03-12 18:15:33 +02:00
Juergen Spitzmueller
71268e859d
Set zoom value after menu
...
Fixes initial size with styles that show a menu indicator
2021-03-12 16:30:50 +01:00
Juergen Spitzmueller
9f92fc92bd
Yet another deprecation fix (this is the last one I am aware of)
2021-03-12 12:14:42 +01:00
Juergen Spitzmueller
934c6480c0
Add forgotten parent
2021-03-12 10:54:46 +01:00
Juergen Spitzmueller
10f4f2113a
Fix deprecation warning (from|toTime_t)
2021-03-12 10:32:03 +01:00
Juergen Spitzmueller
26459a2cf5
Address another deprecation warning.
...
One left to go.
2021-03-12 10:10:33 +01:00
Juergen Spitzmueller
1a35afbe8f
Fix deprecation warning
2021-03-11 19:06:03 +01:00
Juergen Spitzmueller
8a605ca8ad
Add option to toggle zoom slider to zoom statusbar menu
2021-03-11 18:41:52 +01:00
Daniel Ramoeller
2710ec0840
Option to hide the zoom slider
...
Fix for bug #12187 .
2021-03-11 18:41:52 +01:00
Juergen Spitzmueller
f525bded59
Add menu to statusbar zoom value
2021-03-11 18:14:46 +01:00
Juergen Spitzmueller
7a000652c0
Do not scale statusbar icons
...
This leads to stretched icons.
2021-03-11 17:24:19 +01:00
Juergen Spitzmueller
a49abd7383
Remove zoom slider ticks
...
This doesn't align well
2021-03-11 17:24:19 +01:00
Jean-Marc Lasgouttes
447a1056b4
Fix bookmarks-goto inside insets.
...
A stupid oversight, as far as I can see.
2021-03-11 16:16:11 +01:00
Jean-Marc Lasgouttes
86bfa10abb
Adjust bookmark position when inserting/deleting from paragraph
...
Without this, bookmarks positions drift when editing.
2021-03-11 16:00:32 +01:00
Jean-Marc Lasgouttes
b87a81c394
Fixup fbf22bb3
: really avoid screen-jumping with mouse click.
...
It turns out that the commit from gadmm's lyx-unstable has been
cherry-picked at the wrong place! However I believe that both changes
are necessary.
With this second patch, I do see that some screen jumping is avoided.
Fixes bug #7457 .
2021-03-10 10:43:45 +01:00
Jean-Marc Lasgouttes
776807a536
Constification
2021-03-10 10:43:45 +01:00
Jean-Marc Lasgouttes
9a2b8c87cd
Code reformatting.
2021-03-10 10:43:45 +01:00
Jean-Marc Lasgouttes
87e59caebe
Constify some Paragraph::Private methods
2021-03-09 16:46:05 +01:00