]> git.lyx.org Git - lyx.git/log
lyx.git
4 years agoFix bug #11635
Richard Kimberly Heck [Wed, 8 Apr 2020 21:50:09 +0000 (17:50 -0400)]
Fix bug #11635

4 years agoSimplify code for bidi icons
Jean-Marc Lasgouttes [Thu, 16 Apr 2020 17:21:54 +0000 (19:21 +0200)]
Simplify code for bidi icons

Most of the RtL icons that we provide are simply mirrors of the LtR ones.
Therefore let the code do that by default if no +rtl icon is found.

The only RtL icon left for now is for "layout Enumerate" (notice the
numbers in it).

Also remove useless getPixmap wrapper and several old bidi_xxx icons
that were forgotten in previous patch.

4 years agoThis has been asked numerous times on users list.
Pavel Sanda [Thu, 16 Apr 2020 16:57:31 +0000 (18:57 +0200)]
This has been asked numerous times on users list.

4 years agoReimplement properly bidi icons
Jean-Marc Lasgouttes [Tue, 14 Apr 2020 20:41:00 +0000 (22:41 +0200)]
Reimplement properly bidi icons

When the cursor in RTL text, icons for "depth-increment" or
"layout-toggle Enumerate" look wrong.

Instead of relying on the clumsy "bidi" lfun of 2898c335, this new
version relies on a new Toobar tag BidiItem that inserts an action
which can have two icons, depending on the direction of the paragraph
containing the caret (or of the direction of the UI when no file is
open).

The alternative icon has the same name as the original one, with a
"+rtl" string appended to the lfun string. The alternative icon is
only active if the file is found. The icon themes `default', `oxygen'
and `classic' have been updated accordingly.

Fixes bug #4451.

4 years agoRevert "Add mechanism to change icons in RTL mode"
Jean-Marc Lasgouttes [Tue, 14 Apr 2020 16:30:44 +0000 (18:30 +0200)]
Revert "Add mechanism to change icons in RTL mode"

This is really too clumsy. Revert in preparation for a better
mechanism.

This reverts commit 2898c335be6114194a15cb1aafe4a3c7c170f212.

4 years agoCmake build: Fix use of LYX_ABS_INSTALLED_DATADIR
Kornel Benko [Tue, 14 Apr 2020 17:59:41 +0000 (19:59 +0200)]
Cmake build: Fix use of LYX_ABS_INSTALLED_DATADIR

(Wrong display at configuration time. Also wrong value in created config.h)

4 years agoFixup 294969c6: do not forget to update metrics
Jean-Marc Lasgouttes [Tue, 14 Apr 2020 15:57:49 +0000 (17:57 +0200)]
Fixup 294969c6: do not forget to update metrics

4 years agoCmake build: All directory variables should contain trailing '/'
Kornel Benko [Tue, 14 Apr 2020 11:01:17 +0000 (13:01 +0200)]
Cmake build: All directory variables should contain trailing '/'

4 years agoAmend(2) 4b052dec: Do not use CMAKE_INSTALL_PREFIX
Kornel Benko [Mon, 13 Apr 2020 20:18:47 +0000 (22:18 +0200)]
Amend(2) 4b052dec: Do not use CMAKE_INSTALL_PREFIX

On Windows this leads to duplicated use of 'LYX_INSTALLED' in the installed paths.
Spotted by Eugene.

4 years agoAmend ef42541d26: Missed to commit these
Kornel Benko [Mon, 13 Apr 2020 11:39:33 +0000 (13:39 +0200)]
Amend ef42541d26: Missed to commit these

4 years agoPrepend dir containing created dtl executables to PATH
Kornel Benko [Mon, 13 Apr 2020 10:51:04 +0000 (12:51 +0200)]
Prepend dir containing created dtl executables to PATH

This should work on Windows, but needs test.
The changes (namely the installation directory for the dtl executables)
for automake are not yet done. (JMarc?)

It may fix bug #11325 if cmake configured with '-DLYX_EXTERNAL_DTL=OFF'

4 years agoFix embarassing crash caused by debug message
Jean-Marc Lasgouttes [Mon, 13 Apr 2020 10:02:26 +0000 (12:02 +0200)]
Fix embarassing crash caused by debug message

After commit 6a936d63, the helpful debug message tries to display
non-existing elements and crashes the program :(

Fix by radical simplification of the message.

Part of bug #11777.

4 years agofix distcheck
Pavel Sanda [Fri, 10 Apr 2020 12:28:59 +0000 (14:28 +0200)]
fix distcheck

4 years agoFix some compiler warnings in dt2dv.c
Juergen Spitzmueller [Fri, 10 Apr 2020 07:15:13 +0000 (09:15 +0200)]
Fix some compiler warnings in dt2dv.c

4 years agoFix sign mismatch introduced with 8e60fcf530166
Juergen Spitzmueller [Fri, 10 Apr 2020 07:00:19 +0000 (09:00 +0200)]
Fix sign mismatch introduced with 8e60fcf530166

4 years agoCmake build: Add manuals for created executables dv2dt and dt2dv
Kornel Benko [Thu, 9 Apr 2020 12:44:18 +0000 (14:44 +0200)]
Cmake build: Add manuals for created executables dv2dt and dt2dv

4 years agoWin compile doc update from Eugene
Juergen Spitzmueller [Thu, 9 Apr 2020 11:05:21 +0000 (13:05 +0200)]
Win compile doc update from Eugene

4 years agoAdd automake support for dtl
Jean-Marc Lasgouttes [Thu, 9 Apr 2020 10:40:00 +0000 (12:40 +0200)]
Add automake support for dtl

4 years agoDo not put C++-only options in AM_CPPFLAGS
Jean-Marc Lasgouttes [Thu, 9 Apr 2020 10:24:44 +0000 (12:24 +0200)]
Do not put C++-only options in AM_CPPFLAGS

4 years agoAmend b280fed1: 3rdparty/dtl: Use preprocessor value on Windows
Kornel Benko [Thu, 9 Apr 2020 09:58:49 +0000 (11:58 +0200)]
Amend b280fed1: 3rdparty/dtl: Use preprocessor value on Windows

4 years agoCmake build: Added 3rdparty creation of dt2dv and dv2dt
Kornel Benko [Thu, 9 Apr 2020 09:46:47 +0000 (11:46 +0200)]
Cmake build: Added 3rdparty creation of dt2dv and dv2dt

Works on linux, needs testing on Windows

4 years agoAddress #9368
Juergen Spitzmueller [Thu, 9 Apr 2020 08:08:44 +0000 (10:08 +0200)]
Address #9368

pdfview creates a temp pdf file to determine the standard pdf viewer,
code simplification, reducing dll dependencies

Patch by Eugene.

4 years agoFix date
Juergen Spitzmueller [Thu, 9 Apr 2020 07:29:41 +0000 (09:29 +0200)]
Fix date

4 years agoAdd ChangeLog do document our own changes
Juergen Spitzmueller [Thu, 9 Apr 2020 07:22:48 +0000 (09:22 +0200)]
Add ChangeLog do document our own changes

4 years ago2006-09-14 Enrico Forestieri <forenr@lyx.org>
Juergen Spitzmueller [Thu, 9 Apr 2020 07:22:02 +0000 (09:22 +0200)]
2006-09-14 Enrico Forestieri <forenr@lyx.org>

* dt2dv.c: Handle non-ASCII characters.

See https://www.lyx.org/trac/ticket/2836

4 years ago2005-07-25 Angus Leeming <leeeming@lyx.org>
Juergen Spitzmueller [Thu, 9 Apr 2020 07:21:05 +0000 (09:21 +0200)]
2005-07-25 Angus Leeming <leeeming@lyx.org>

* dt2dv.c: Enable to handle .dvi files containing strings longer than 1024 chars.

* Makefile: enable the to work out of the box on both *nix and Windows machines
  under the MinSYS environment.

* man2ps: build fixes

See https://marc.info/?l=lyx-devel&m=115228143031699

4 years agoAdd dtl tools to 3rdparty/
Juergen Spitzmueller [Thu, 9 Apr 2020 06:58:09 +0000 (08:58 +0200)]
Add dtl tools to 3rdparty/

We need to compile our own (patched) version of the app on Windows.

See #11325

4 years agoDebug output for paragraph params.
Richard Kimberly Heck [Wed, 8 Apr 2020 21:17:14 +0000 (17:17 -0400)]
Debug output for paragraph params.

4 years agoFix bug #11817.
Richard Kimberly Heck [Wed, 8 Apr 2020 20:40:39 +0000 (16:40 -0400)]
Fix bug #11817.

Preserve line spacing when breaking a paragraph at the beginning.

4 years agoAdded revtex4-2.layout
Kornel Benko [Wed, 8 Apr 2020 08:27:34 +0000 (10:27 +0200)]
Added revtex4-2.layout

For revtex4.1, this is only cosmetics, because the content
of the layout moved to revtex4-x.inc.

4 years agoCmake tests: Amend 353295e4
Kornel Benko [Tue, 7 Apr 2020 12:16:07 +0000 (14:16 +0200)]
Cmake tests: Amend 353295e4

Prevent also the command-line setting of LYX_ENABLE_VALGRIND_TESTS
for the cmake versions < 3.17

4 years agoCmake tests: Start preparing for tests involving valgrind
Kornel Benko [Tue, 7 Apr 2020 10:12:29 +0000 (12:12 +0200)]
Cmake tests: Start preparing for tests involving valgrind

4 years agoUpdate sk.po
Kornel Benko [Tue, 7 Apr 2020 09:54:15 +0000 (11:54 +0200)]
Update sk.po

4 years agoAdd "inset-settings" shortcut to sk/menus.bind
Kornel Benko [Tue, 7 Apr 2020 09:52:58 +0000 (11:52 +0200)]
Add "inset-settings" shortcut to sk/menus.bind

4 years agoCmake build: Discard (unset) some variables if not used anymore
Kornel Benko [Tue, 7 Apr 2020 09:48:45 +0000 (11:48 +0200)]
Cmake build: Discard (unset) some variables if not used anymore

4 years agoFix indentation
Kornel Benko [Tue, 7 Apr 2020 09:47:08 +0000 (11:47 +0200)]
Fix indentation

4 years agoFix indentation
Juergen Spitzmueller [Mon, 6 Apr 2020 14:29:34 +0000 (16:29 +0200)]
Fix indentation

4 years agoFix quotation marks in PDF TOC
Juergen Spitzmueller [Mon, 6 Apr 2020 06:53:29 +0000 (08:53 +0200)]
Fix quotation marks in PDF TOC

4 years agoDownload dictionaries and thesauri from SVN.
Richard Kimberly Heck [Sun, 5 Apr 2020 18:48:19 +0000 (14:48 -0400)]
Download dictionaries and thesauri from SVN.

Patch from Eugene.

4 years agoStrip polyglossia options from pdf string
Juergen Spitzmueller [Sun, 5 Apr 2020 13:23:22 +0000 (15:23 +0200)]
Strip polyglossia options from pdf string

Fixes #11813

4 years agoPrevious DTL update is not usable. Roll it back.
Richard Kimberly Heck [Sat, 4 Apr 2020 23:25:11 +0000 (19:25 -0400)]
Previous DTL update is not usable. Roll it back.

Patch from Eugene.

4 years agoBatch file for removing unneeded imagemagick binaries.
Richard Kimberly Heck [Sat, 4 Apr 2020 23:23:48 +0000 (19:23 -0400)]
Batch file for removing unneeded imagemagick binaries.

Also update installation description.

4 years agoChangelog from Eugene.
Richard Kimberly Heck [Sat, 4 Apr 2020 23:22:08 +0000 (19:22 -0400)]
Changelog from Eugene.

4 years agoDescription for windows installer and dependencies
Richard Kimberly Heck [Sat, 4 Apr 2020 23:21:00 +0000 (19:21 -0400)]
Description for windows installer and dependencies

Patch from Eugene.

4 years agoChanged main registry entry (LyX\Version now).
Richard Kimberly Heck [Sat, 4 Apr 2020 23:18:23 +0000 (19:18 -0400)]
Changed main registry entry (LyX\Version now).
Added "latestVersion" value.

Patch from Eugene.

4 years agoImplement 64 bit installer.
Richard Kimberly Heck [Sat, 4 Apr 2020 23:16:29 +0000 (19:16 -0400)]
Implement 64 bit installer.
Remove registry hacking for imagemagick (using portable now).

4 years agoDo not compute caret geometry when we are not ready to do so.
Jean-Marc Lasgouttes [Sat, 4 Apr 2020 16:10:44 +0000 (18:10 +0200)]
Do not compute caret geometry when we are not ready to do so.

This avoid crashes with invalid cache.

Fixes bug #11763.

4 years agoDisable append-column with gathered
Juergen Spitzmueller [Sat, 4 Apr 2020 07:27:24 +0000 (09:27 +0200)]
Disable append-column with gathered

Fixes #11812

4 years agoChange tootip for Labeling layout toolbar button
Jean-Marc Lasgouttes [Fri, 3 Apr 2020 17:16:04 +0000 (19:16 +0200)]
Change tootip for Labeling layout toolbar button

Labeled List sounds better that Labeling.

Part of bug #11770.

4 years agoia.po: Update from Giovanni
Pavel Sanda [Fri, 3 Apr 2020 11:49:37 +0000 (13:49 +0200)]
ia.po: Update from Giovanni

4 years agoRemerge ia.po
Pavel Sanda [Fri, 3 Apr 2020 11:46:55 +0000 (13:46 +0200)]
Remerge ia.po

4 years agoImplement buffer-write force
Juergen Spitzmueller [Tue, 31 Mar 2020 06:01:17 +0000 (08:01 +0200)]
Implement buffer-write force

4 years agouse path to developer tools for SetFile utility as fallback
Stephan Witt [Sun, 29 Mar 2020 16:56:53 +0000 (18:56 +0200)]
use path to developer tools for SetFile utility as fallback

4 years agoPrevent wrong reference to duplicated (but deleted) label
Juergen Spitzmueller [Sun, 29 Mar 2020 15:47:59 +0000 (17:47 +0200)]
Prevent wrong reference to duplicated (but deleted) label

Fixes #11803

4 years agoRemove code disabled since 2005.
Richard Kimberly Heck [Sun, 29 Mar 2020 03:52:55 +0000 (23:52 -0400)]
Remove code disabled since 2005.

No one knew then what it was supposed to do.

4 years agoFix bug #11799.
Richard Kimberly Heck [Sun, 29 Mar 2020 03:34:44 +0000 (23:34 -0400)]
Fix bug #11799.

I've made cut, etc, OptItems, as this menu is already very long.

4 years agoRemove obsolete (and false) comment.
Richard Kimberly Heck [Sun, 29 Mar 2020 03:23:47 +0000 (23:23 -0400)]
Remove obsolete (and false) comment.

4 years agoPreviewLoader: start fake pids after PID_MAX_LIMIT
Scott Kostyshak [Sat, 28 Mar 2020 23:12:25 +0000 (19:12 -0400)]
PreviewLoader: start fake pids after PID_MAX_LIMIT

4 years agoUse << for raising 2 to power instead of ^
Scott Kostyshak [Sat, 28 Mar 2020 16:19:11 +0000 (12:19 -0400)]
Use << for raising 2 to power instead of ^

The ^ is interpretted as bitwise XOR, so 2^(20) evaluated to 22.

Thanks to Riki for the << trick. This way, we do not have to use
pow() and include the <cmath> header for this one expression.

4 years agoFix crash after 24926b2e239.
Richard Kimberly Heck [Sat, 28 Mar 2020 19:23:13 +0000 (15:23 -0400)]
Fix crash after 24926b2e239.

The matched element may not have a parent. I guess the old version of
setExpanded too care of that. Now we have to do so.

4 years agoRemove newlines from shortcut LFUNs.
Richard Kimberly Heck [Sat, 28 Mar 2020 19:15:06 +0000 (15:15 -0400)]
Remove newlines from shortcut LFUNs.

4 years agoUpdate sk.po
Kornel Benko [Fri, 27 Mar 2020 07:25:32 +0000 (08:25 +0100)]
Update sk.po

4 years agoFix assertion from setCursor() in outline-down/up
Scott Kostyshak [Thu, 26 Mar 2020 22:57:25 +0000 (18:57 -0400)]
Fix assertion from setCursor() in outline-down/up

The function outline() itself can change the cursor position in some
cases so we need to store the old position before calling outline().

Spotted by Kornel. For an example file that triggered the assertion,
see:

  https://www.mail-archive.com/search?l=mid&q=20200326183314.09ad4c7c%40admin1-desktop

This commit amends adb7283b.

4 years agoFix typo.
Juergen Spitzmueller [Thu, 26 Mar 2020 15:32:13 +0000 (16:32 +0100)]
Fix typo.

4 years agoCmake build: Build VERSION_INFO more cmake-like
Kornel Benko [Thu, 26 Mar 2020 14:48:01 +0000 (15:48 +0100)]
Cmake build: Build VERSION_INFO more cmake-like

Use LIST to add entries and convert the list later to a string

4 years agoUpdate sk.po
Kornel Benko [Thu, 26 Mar 2020 14:47:48 +0000 (15:47 +0100)]
Update sk.po

4 years agoru/Intro: update by Yuriy
Juergen Spitzmueller [Thu, 26 Mar 2020 14:13:49 +0000 (15:13 +0100)]
ru/Intro: update by Yuriy

4 years agoru.po: update by Yuriy
Juergen Spitzmueller [Thu, 26 Mar 2020 14:12:45 +0000 (15:12 +0100)]
ru.po: update by Yuriy

4 years agoCmake build: Amend 3df9525a, extend build info in Help>About
Kornel Benko [Wed, 25 Mar 2020 16:50:58 +0000 (17:50 +0100)]
Cmake build: Amend 3df9525a, extend build info in Help>About

Add also the qt-version and paths of sysdir and the lyx executable
to the  build info

4 years agoCmake build: Extend build info in Help>About
Kornel Benko [Wed, 25 Mar 2020 12:48:16 +0000 (13:48 +0100)]
Cmake build: Extend build info in Help>About

Added list of used cmake options and info about used compiler

4 years agoLet hyperlink insets to be longer if name is given.
Pavel Sanda [Wed, 25 Mar 2020 06:40:27 +0000 (07:40 +0100)]
Let hyperlink insets to be longer if name is given.

Thanks to Oystein Senneset Haaland.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg210882.html

4 years agoAvoid bleeding of inset background outside of inset
Jean-Marc Lasgouttes [Tue, 24 Mar 2020 11:01:43 +0000 (12:01 +0100)]
Avoid bleeding of inset background outside of inset

As a consequence of fix e64ea357 to ticket #10797, we draw a bit too
much of the inset background outside of the inset (visible for insets
with colored background). #10797 is a ticket that triggers when the
cursor has a width larger than 1.

This patch limits the problems in two respects

* nothing is done on the left, since the cursor width only expands on
  the right.

* on the right, the extra width is limited to cursor width.

Fixes bug #11786.

4 years agoPaste some special chars as insets
Juergen Spitzmueller [Mon, 23 Mar 2020 11:07:47 +0000 (12:07 +0100)]
Paste some special chars as insets

See #11790

4 years agoAmend bd6d09fc
Enrico Forestieri [Sun, 22 Mar 2020 21:03:49 +0000 (22:03 +0100)]
Amend bd6d09fc

Was forgetting this.

4 years agoDon't omit ZERO WIDTH NON-JOINER on clipboard paste
Juergen Spitzmueller [Sun, 22 Mar 2020 10:07:57 +0000 (11:07 +0100)]
Don't omit ZERO WIDTH NON-JOINER on clipboard paste

Fixes #11790

4 years agoFix indentation
Juergen Spitzmueller [Sun, 22 Mar 2020 09:10:36 +0000 (10:10 +0100)]
Fix indentation

4 years agoProperly resolve tracked changes when pasting multiple tabular cells
Juergen Spitzmueller [Sat, 21 Mar 2020 14:54:37 +0000 (15:54 +0100)]
Properly resolve tracked changes when pasting multiple tabular cells

Fixes #11791

4 years agoRestore XLFD code for Qt 4
Scott Kostyshak [Sat, 21 Mar 2020 00:36:35 +0000 (20:36 -0400)]
Restore XLFD code for Qt 4

There is a chance that this code is still useful for Qt 4. We keep
it around just in case.

For the case of Qt 4, this commit restores the code changed in
f8e40f8ad255339a, and d4ff3a29.

4 years agoRevert "Fix bug reported by Kornel."
Richard Kimberly Heck [Fri, 20 Mar 2020 21:18:11 +0000 (17:18 -0400)]
Revert "Fix bug reported by Kornel."

This reverts commit 438f15da21a4e6aa2594bb1f6d619540fd0ef02c.

Revert "Track whether we have warned about mixing layouts across e.g. branches."

This reverts commit 861c6167ca5f1329e16dd788489a7c03772e2332.

Revert "Track whether title has been issued via OutputParams."

This reverts commit b536759c0769dab641993347baeb62400455be04.

There are massive complications here, and I don't have time to fix them all
right now.

4 years ago* fix missing entry in ia.po
Pavel Sanda [Fri, 20 Mar 2020 19:43:39 +0000 (20:43 +0100)]
* fix missing entry in ia.po

4 years agoFix bug reported by Kornel.
Richard Kimberly Heck [Fri, 20 Mar 2020 19:25:47 +0000 (15:25 -0400)]
Fix bug reported by Kornel.

The old code was actually wrong. Obviously, this should be set only
if we actually do issue the title command.

4 years agolayouttranslations check from Giovanni
Pavel Sanda [Fri, 20 Mar 2020 16:48:36 +0000 (17:48 +0100)]
layouttranslations check from Giovanni

4 years agoUpdate from Giovanni
Pavel Sanda [Fri, 20 Mar 2020 16:42:47 +0000 (17:42 +0100)]
Update from Giovanni

4 years agoRemerge ia.po
Pavel Sanda [Fri, 20 Mar 2020 16:41:00 +0000 (17:41 +0100)]
Remerge ia.po

4 years agoChange a couple instances of QFontMetrics::width()
Scott Kostyshak [Fri, 20 Mar 2020 13:39:51 +0000 (09:39 -0400)]
Change a couple instances of QFontMetrics::width()

Use QFontMetrics::boundingRect() instead. QFontMetrics::width() does
not actually calculate the width of the bounding box and is mostly
useful for knowing where to draw text after a string, taking into
account bearings. Indeed, it has been renamed to
QFontMetrics::horizontalAdvance().

For the code touched in this commit, we want to center a string.
Either method would likely be fine, but it is more easy to
understand exactly what QFontMetrics::boundingRect() does.

This commit does change functionality, although it should not be
noticeable.

4 years agocat.py: fix Python deprecation warning
Scott Kostyshak [Thu, 19 Mar 2020 22:22:16 +0000 (18:22 -0400)]
cat.py: fix Python deprecation warning

This commit fixes the following warning:

  DeprecationWarning: 'U' mode is deprecated

Removing 'U' has no effect with Python 3 [1]:

  There is an additional mode character permitted, 'U', which no
  longer has any effect, and is considered deprecated. It previously
  enabled universal newlines in text mode, which became the default
  behaviour in Python 3.0.

[1] https://docs.python.org/3/library/functions.html?highlight=open#open

4 years agoRemove redundant font loader code
Scott Kostyshak [Fri, 20 Mar 2020 13:12:47 +0000 (09:12 -0400)]
Remove redundant font loader code

Setting the family to "family" is already attempted above. A
different case was adapted to be this duplicate case at d4ff3a29,
but it should have just been removed.

Spotted by Enrico.

4 years agoRemove remnants regarding old XLFD font handling
Scott Kostyshak [Thu, 19 Mar 2020 16:39:07 +0000 (12:39 -0400)]
Remove remnants regarding old XLFD font handling

These fonts are no longer supported by Qt 5 and our code no longer
uses the "xlfd" member of the struct modified in this commit. See
d4ff3a2959.

4 years agoFix Qt dep warn and remove XLFD font workaround
Scott Kostyshak [Thu, 19 Mar 2020 16:20:16 +0000 (12:20 -0400)]
Fix Qt dep warn and remove XLFD font workaround

This commit fixes a few warnings from Qt 5.14 regarding
QFont::setRawName() and QFont::rawName() like the following one:

  error: ‘void QFont::setRawName(const QString&)’ is deprecated [-Werror=deprecated-declarations]

These methods were deprecated in Qt 5.3. [1]

This commit removes code from 2002 (539ce478) that worked around a
problem in Qt's handling of XLFD fonts that no longer seems relevant
since XLFD is no longer supported in Qt 5 [2]. Even if the problem
were relevant, setRawName() would not fix anything since it is now
an empty method. [3]

I tested that compilation with Qt 4.8.7 works without error.

[1] https://code.qt.io/cgit/qt/qtbase.git/tree/dist/changes-5.3.0/?h=v5.14.0
[2] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=3a8d7b0b9a4db91415b7bda2582a59a76b3754dc
[3] https://codereview.qt-project.org/c/qt/qtbase/+/100292/

4 years agoFix Qt deprecation warns for setTextColor()
Scott Kostyshak [Thu, 19 Mar 2020 14:16:19 +0000 (10:16 -0400)]
Fix Qt deprecation warns for setTextColor()

This commit fixes the following warning from Qt 5.14:

  error: ‘void QTreeWidgetItem::setTextColor(int, const QColor&)’ is deprecated: Use QTreeWidgetItem::setForeground() instead [-Werror=deprecated-declarations]

setForeground was introduced in Qt 4.2 [1].

We have a couple of commented out uses of a setTextColor() method in
GuiDocument.cpp, but the QTextEdit::setTextColor() is not deprecated so no
change is needed.

[1] https://doc.qt.io/archives/qt-4.8/qtreewidgetitem.html#setForeground

4 years agoFix commented out code
Scott Kostyshak [Thu, 19 Mar 2020 13:57:08 +0000 (09:57 -0400)]
Fix commented out code

4 years agoFix Qt deprecation warns for setAutoCompletion()
Scott Kostyshak [Thu, 19 Mar 2020 01:00:09 +0000 (21:00 -0400)]
Fix Qt deprecation warns for setAutoCompletion()

This commit fixes a few warnings from Qt 5.14 like the following
one:

  error: ‘void QComboBox::setAutoCompletion(bool)’ is deprecated: Use setCompleter() instead. [-Werror=deprecated-declarations]

We only generated setAutoCompletion() from setting the property in
the .ui files. There does not seem to be a .ui file property that
generates setCompleter(). However, the default in both Qt5 [1] and
Qt4 [2] is to enable case-insensitive autocompletion, which seems to
be the same type of autocompletion as when we were relying on
setAutoCompletion(true). Thus, we can remove the properties that set
autocomplete to true. There is only one file, SearchUi.ui, where we
were turning off the autocompletion; we now do so using
setCompleter(0) in GuiSearch::GuiSearch().

[1] https://doc.qt.io/qt-5/qcombobox.html#setCompleter
[2] https://doc.qt.io/archives/qt-4.8/qcombobox.html#setCompleter

4 years agoTrack whether we have warned about mixing layouts across e.g. branches.
Richard Kimberly Heck [Tue, 17 Mar 2020 05:54:47 +0000 (01:54 -0400)]
Track whether we have warned about mixing layouts across e.g. branches.

4 years agoTrack whether title has been issued via OutputParams.
Richard Kimberly Heck [Tue, 17 Mar 2020 05:50:28 +0000 (01:50 -0400)]
Track whether title has been issued via OutputParams.

When branches are used in the title, we may need to track whether
we've issued the title across branch insets. So we put the relevant
variables into OutputParams.

4 years agoFix bug #11787.
Richard Kimberly Heck [Tue, 17 Mar 2020 05:33:44 +0000 (01:33 -0400)]
Fix bug #11787.

Make sure we are actually at the end of the document before issuing
\maketitle because we are at the end of the document.

4 years agoRemove unused function
Richard Kimberly Heck [Mon, 16 Mar 2020 06:18:19 +0000 (02:18 -0400)]
Remove unused function

4 years agoFix some warnings
Richard Kimberly Heck [Mon, 16 Mar 2020 06:12:16 +0000 (02:12 -0400)]
Fix some warnings

4 years agoNullptr warnings
Richard Kimberly Heck [Mon, 16 Mar 2020 06:09:39 +0000 (02:09 -0400)]
Nullptr warnings

4 years agoFix warning about 'requires' being a keyword.
Richard Kimberly Heck [Mon, 16 Mar 2020 05:31:09 +0000 (01:31 -0400)]
Fix warning about 'requires' being a keyword.

4 years agoUse ranges and fix nullptr warnings.
Richard Kimberly Heck [Mon, 16 Mar 2020 05:08:03 +0000 (01:08 -0400)]
Use ranges and fix nullptr warnings.