From 61888beb2bbe946de316221ae23b75a3807ca6ad Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Sun, 12 Apr 2009 22:02:15 +0000 Subject: [PATCH] * The program version is now propagated to the program; and it now ends up showed in the About dialog. --- src/about.ui | 31 ++++++++++++++++++++++++------- src/goldendict.pro | 2 ++ src/locale/ru.ts | 17 +++++++++++++---- src/mainwindow.cc | 2 ++ 4 files changed, 41 insertions(+), 11 deletions(-) diff --git a/src/about.ui b/src/about.ui index 221d473a..1ede63bb 100644 --- a/src/about.ui +++ b/src/about.ui @@ -38,14 +38,31 @@ - - - GoldenDict dictionary lookup program, version 0.7 + + + 0 - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - + + + + GoldenDict dictionary lookup program, version + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + + + #.# + + + + diff --git a/src/goldendict.pro b/src/goldendict.pro index b78b2ad4..9b75d089 100644 --- a/src/goldendict.pro +++ b/src/goldendict.pro @@ -43,6 +43,8 @@ unix { INSTALLS += target locale } +DEFINES += PROGRAM_VERSION=\\\"$$VERSION\\\" + # Input HEADERS += folding.hh \ inc_case_folding.hh \ diff --git a/src/locale/ru.ts b/src/locale/ru.ts index aa156bd6..53061978 100644 --- a/src/locale/ru.ts +++ b/src/locale/ru.ts @@ -19,17 +19,26 @@ О программе - GoldenDict dictionary lookup program, version 0.7 - Словарь GoldenDict, версия 0.7 + Словарь GoldenDict, версия 0.7 - + + GoldenDict dictionary lookup program, version + Словарь GoldenDict, версия + + + + #.# + #.# + + + (c) 2008-2009 Konstantin Isakov (ikm@users.berlios.de) © Константин Исаков (ikm@users.berlios.de), 2008-2009 - + Licensed under GNU GPLv3 or later Лицензия: GNU GPLv3 или более поздняя версия diff --git a/src/mainwindow.cc b/src/mainwindow.cc index deb89a1f..12aed05f 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -1138,6 +1138,8 @@ void MainWindow::showAbout() ui.setupUi( &about ); + ui.version->setText( PROGRAM_VERSION ); + about.show(); about.exec(); }