Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
libopenconnect version was moved to About box
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos Mavrogiannopoulos committed Sep 5, 2014
1 parent 387f6cc commit 7252ba9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <iostream>
#include <QTranslator>

#define VERSION "0.1"
#define VERSION "0.2"
#define APP_NAME "openconnect-gui"
#define APP_STRING APP_NAME" "VERSION

Expand Down
5 changes: 4 additions & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
15 changes: 11 additions & 4 deletions mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>296</width>
<height>174</height>
<width>284</width>
<height>192</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -371,8 +371,15 @@
<attribute name="title">
<string>About</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="versionLabel">
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/nmav/openconnect-gui/wiki&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Openconnect-gui&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Copyright 2014 Red Hat Inc.&lt;br/&gt;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. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
Expand Down

0 comments on commit 7252ba9

Please sign in to comment.