From ab3ffd3a590c29b5db98a1c36a225eb2a87b3405 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 7 Apr 2008 15:51:35 +0000 Subject: [PATCH] * src/frontends/qt4/GuiView.cpp: - make version string in the banner at least partially translatable. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24152 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 2a0bac0df3..d93b932bbb 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -113,7 +113,8 @@ public: { LYXERR(Debug::GUI, "show banner: " << lyxrc.show_banner); /// The text to be written on top of the pixmap - QString const text = "version " + (lyx_version ? lyx_version : qt_("unknown version")); + QString const text = lyx_version ? + qt_("version ") + lyx_version : qt_("unknown version"); splash_ = QPixmap(":/images/banner.png"); QPainter pain(&splash_); @@ -300,7 +301,7 @@ GuiView::GuiView(int id) // We don't want to keep the window in memory if it is closed. setAttribute(Qt::WA_DeleteOnClose, true); -#ifndef Q_WS_WIN | Q_WS_MACX +#if (!defined(Q_WS_WIN) && !defined(Q_WS_MACX)) // assign an icon to main form. We do not do it under Qt/Win or Qt/Mac, // since the icon is provided in the application bundle. setWindowIcon(QPixmap(":/images/lyx.png")); -- 2.39.2