]> git.lyx.org Git - features.git/commit
Consistency of ellipses across the UI
authorGuillaume Munch <gm@lyx.org>
Sun, 4 Oct 2015 18:38:47 +0000 (19:38 +0100)
committerGuillaume Munch <gm@lyx.org>
Mon, 5 Oct 2015 20:16:16 +0000 (21:16 +0100)
commitbb344452c8eafaba4f0e7a51f8e4d99176570d9b
treeffe3972bd98b7c7468c7df91b6c679af330f8e06
parentf6c6416f289af0e21486c7a157dac7e5fab98623
Consistency of ellipses across the UI

Use the function support:truncateWithEllipsis() to shorten a docstring with
... at the end. Actually we use U+2026 HORIZONTAL ELLIPSIS instead of "..." when
automatically shortening strings. This is to be consistent with Qt's own
truncation and is much nicer on the screen.

This includes the bugs #9575 and #9572 regarding broken text elision in the
outliner.

Known issues (non-regressions):

* TocBackend::updateItem() should be rewritten to update all TOCs. (#8386)

* "..." should be replaced with … everywhere else on the interface (including
  translation strings).

* We should prefer to rely on QFontMetrics::elidedText() to truncate strings
  with an ellipsis whenever possible, or an equivalent for the buffer view
  dependent on the font metrics. See the warning in src/support/lstrings.h.
38 files changed:
src/BiblioInfo.cpp
src/CutAndPaste.cpp
src/Paragraph.cpp
src/Paragraph.h
src/Text.cpp
src/Text.h
src/TocBackend.cpp
src/frontends/qt4/GuiCompleter.cpp
src/frontends/qt4/GuiWorkArea.cpp
src/frontends/qt4/Menus.cpp
src/insets/Inset.cpp
src/insets/Inset.h
src/insets/InsetBranch.cpp
src/insets/InsetBranch.h
src/insets/InsetCaptionable.cpp
src/insets/InsetCitation.cpp
src/insets/InsetCitation.h
src/insets/InsetHyperlink.cpp
src/insets/InsetHyperlink.h
src/insets/InsetIPAMacro.cpp
src/insets/InsetIPAMacro.h
src/insets/InsetNomencl.cpp
src/insets/InsetQuotes.cpp
src/insets/InsetQuotes.h
src/insets/InsetRef.cpp
src/insets/InsetRef.h
src/insets/InsetScript.cpp
src/insets/InsetSpace.cpp
src/insets/InsetSpace.h
src/insets/InsetSpecialChar.cpp
src/insets/InsetSpecialChar.h
src/insets/InsetText.cpp
src/insets/InsetText.h
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h
src/support/filetools.cpp
src/support/lstrings.cpp
src/support/lstrings.h