Show python info in About LyX

This commit is contained in:
Richard Kimberly Heck 2021-02-13 11:53:03 -05:00
parent fe792d7efe
commit c6dfc70367
2 changed files with 7 additions and 2 deletions

View File

@ -281,6 +281,11 @@ static QString version(bool const plain = false)
else else
out << "</p><p>"; out << "</p><p>";
out << toqstr(bformat(_("Qt Version (compile-time): %1$s"), from_ascii(QT_VERSION_STR))); 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) if (!plain)
out << toqstr("</p></body></html>"); out << toqstr("</p></body></html>");
return res; return res;
@ -339,7 +344,7 @@ GuiAbout::GuiAbout(GuiView & lv)
d->ui.tab->setUsesScrollButtons(false); d->ui.tab->setUsesScrollButtons(false);
// fix height to minimum // fix height to minimum
setFixedHeight(sizeHint().height()); // setFixedHeight(sizeHint().height());
} }

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>552</width> <width>552</width>
<height>402</height> <height>470</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">