[LyX/master] Show python info in About LyX
Richard Kimberly Heck
rikiheck at lyx.org
Sat Feb 13 16:50:07 UTC 2021
commit c6dfc70367b3156f2c94cd6f0980c927472e12ec
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date: Sat Feb 13 11:53:03 2021 -0500
Show python info in About LyX
---
src/frontends/qt/GuiAbout.cpp | 7 ++++++-
src/frontends/qt/ui/AboutUi.ui | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt/GuiAbout.cpp b/src/frontends/qt/GuiAbout.cpp
index 35dd3bf..6a4a137 100644
--- a/src/frontends/qt/GuiAbout.cpp
+++ b/src/frontends/qt/GuiAbout.cpp
@@ -281,6 +281,11 @@ static QString version(bool const plain = false)
else
out << "</p><p>";
out << toqstr(bformat(_("Qt Version (compile-time): %1$s"), from_ascii(QT_VERSION_STR)));
+ if (plain)
+ out << '\n';
+ else
+ out << "</p><p>";
+ out << toqstr(bformat(_("Python detected: %1$s"), from_utf8(os::python())));
if (!plain)
out << toqstr("</p></body></html>");
return res;
@@ -339,7 +344,7 @@ GuiAbout::GuiAbout(GuiView & lv)
d->ui.tab->setUsesScrollButtons(false);
// fix height to minimum
- setFixedHeight(sizeHint().height());
+ // setFixedHeight(sizeHint().height());
}
diff --git a/src/frontends/qt/ui/AboutUi.ui b/src/frontends/qt/ui/AboutUi.ui
index 7ae4ebd..bce7593 100644
--- a/src/frontends/qt/ui/AboutUi.ui
+++ b/src/frontends/qt/ui/AboutUi.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>552</width>
- <height>402</height>
+ <height>470</height>
</rect>
</property>
<property name="windowTitle">
More information about the lyx-cvs
mailing list