From bb4cc9f7004107283674d6750c229549028fb3d2 Mon Sep 17 00:00:00 2001 From: Nikolay Tischenko Date: Fri, 11 Mar 2011 22:44:29 +0600 Subject: [PATCH] Version number in about from someplayer.h --- src/aboutform.cpp | 2 ++ src/someplayer.h | 2 +- src/ui/aboutform.ui | 45 +++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 44 insertions(+), 5 deletions(-) diff --git a/src/aboutform.cpp b/src/aboutform.cpp index 2edb7dd..a3956f2 100644 --- a/src/aboutform.cpp +++ b/src/aboutform.cpp @@ -3,6 +3,7 @@ #include "config.h" #include #include +#include "someplayer.h" using namespace SomePlayer::Storage; @@ -32,6 +33,7 @@ void AboutForm::updateIcons() { void AboutForm::updateTranslations() { ui->retranslateUi(this); + ui->versionLabel->setText(QString("%1").arg(_SOMEPLAYER_VERSION_)); } void AboutForm::onlineHelp() { diff --git a/src/someplayer.h b/src/someplayer.h index 85c2666..febecc0 100644 --- a/src/someplayer.h +++ b/src/someplayer.h @@ -48,7 +48,7 @@ namespace SomePlayer { #include "config.h" #define _DYNAMIC_PLAYLIST_MAX_COUNT_ 50 -#define _SOMEPLAYER_VERSION_ "1.5.2" +#define _SOMEPLAYER_VERSION_ "1.5.2-5" #define NDEBUG #define _SERVICE_NAME_ "ru.somebody.someplayer" diff --git a/src/ui/aboutform.ui b/src/ui/aboutform.ui index f3388d6..613cb60 100644 --- a/src/ui/aboutform.ui +++ b/src/ui/aboutform.ui @@ -32,9 +32,9 @@ 0 - -208 + 0 550 - 562 + 569 @@ -97,16 +97,53 @@ - + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + - <b>SomePlayer 1.5.2</b> + <b>SomePlayer</b> Qt::AlignCenter + + + + >< + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + -- 1.7.9.5