From 7252ba9dfd948987f65a918aeb933eca51986970 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 5 Sep 2014 11:06:07 +0200 Subject: [PATCH] libopenconnect version was moved to About box --- common.h | 2 +- mainwindow.cpp | 5 ++++- mainwindow.ui | 15 +++++++++++---- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/common.h b/common.h index 56f923b1..4f51cc54 100755 --- a/common.h +++ b/common.h @@ -23,7 +23,7 @@ #include #include -#define VERSION "0.1" +#define VERSION "0.2" #define APP_NAME "openconnect-gui" #define APP_STRING APP_NAME" "VERSION diff --git a/mainwindow.cpp b/mainwindow.cpp index 655d0d80..c7bd4823 100755 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -49,8 +49,11 @@ MainWindow::MainWindow(QWidget *parent) : ui(new Ui::MainWindow) { const char *version = openconnect_get_version(); + ui->setupUi(this); - this->setWindowTitle(QLatin1String("openconnect "VERSION" (lib ")+QLatin1String(version)+QLatin1String(")")); + this->setWindowTitle(QLatin1String("openconnect "VERSION)); + + ui->versionLabel->setText(QLatin1String("Based on libopenconnect ")+QLatin1String(version)); timer = new QTimer(this); blink_timer = new QTimer(this); diff --git a/mainwindow.ui b/mainwindow.ui index f2fa0b8d..712ac42d 100755 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -9,8 +9,8 @@ 0 0 - 296 - 174 + 284 + 192 @@ -371,8 +371,15 @@ About - - + + + + + + + + + <html><head/><body><p><a href="https://github.com/nmav/openconnect-gui/wiki"><span style=" text-decoration: underline; color:#0000ff;">Openconnect-gui</span></a></p><p>Copyright 2014 Red Hat Inc.<br/>Openconnect-gui comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under the conditions of the GNU General Public License version 3. </p></body></html>