Le 20/03/2019 à 11:46, Jean-Marc Lasgouttes a écrit :
commit 0c8eea0fe526e17c75c524c0eacdacfd78d8d7b2
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Mar 20 11:45:29 2019 +0100
Compilation fix for Qt < 5.2.
Jürgen, please check that the new code is equivalent to the old.
While I am at it, I have remarks:
1/ on my machine, the language menu shows "Français", but I see no
french examples. How does it work?
2/ if I double click on the "Article" header, the dialog closes and
nothing happens
3/ Closed subheaders look cramped when compared to the files themselves
(due to the file icon). At first, I even thought that their were set in
a smaller font.
JMarc
---
src/frontends/qt4/GuiLyXFiles.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/frontends/qt4/GuiLyXFiles.cpp
b/src/frontends/qt4/GuiLyXFiles.cpp
index c5d5c05..4d4746d 100644
--- a/src/frontends/qt4/GuiLyXFiles.cpp
+++ b/src/frontends/qt4/GuiLyXFiles.cpp
@@ -58,7 +58,11 @@ void GuiLyXFiles::getFiles(QMap<QString, QString> & in,
QString const type)
string const system = addPath(package().system_support().absFileName(),
fromqstr(type));
// First, query the current language subdir (except for English)
+#if QT_VERSION >= 0x050200
QString const lang = languageCO->currentData().toString();
+#else
+ QString const lang = languageCO->currentText();
+#endif
if (!lang.startsWith("en")) {
// First try with the full code
dirs << toqstr(addPath(user, fromqstr(lang)));