From b57171552fda5a4d60487192d3c91176c5de55ac Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Sun, 12 Jun 2016 10:12:27 +0200 Subject: [PATCH] ui: Added download link to start screen --- bin/app/data/gui/startscreen/startscreen.css | 11 +++++++++++ src/lib_gui/qt/window/QtStartScreen.cpp | 13 +++++++++++++ 2 files changed, 24 insertions(+) diff --git a/bin/app/data/gui/startscreen/startscreen.css b/bin/app/data/gui/startscreen/startscreen.css index 825bf350..ce7e1984 100644 --- a/bin/app/data/gui/startscreen/startscreen.css +++ b/bin/app/data/gui/startscreen/startscreen.css @@ -38,6 +38,17 @@ font-weight: bold; } +#versionLabel { + color: black; + font-size: 12pt; + font-weight: bold; +} + +#updateLabel { + color: black; + font-size: 12pt; +} + #welcomeLabel { color: black; font-size: 12pt; diff --git a/src/lib_gui/qt/window/QtStartScreen.cpp b/src/lib_gui/qt/window/QtStartScreen.cpp index e4d2d672..514cc9ec 100644 --- a/src/lib_gui/qt/window/QtStartScreen.cpp +++ b/src/lib_gui/qt/window/QtStartScreen.cpp @@ -15,6 +15,7 @@ #include "qt/utility/QtDeviceScaledPixmap.h" #include "qt/utility/utilityQt.h" #include "utility/logging/logging.h" +#include "utility/Version.h" #include "isTrial.h" QtRecentProjectButton::QtRecentProjectButton(QWidget* parent) @@ -155,6 +156,18 @@ void QtStartScreen::setupStartScreen() m_openProjectButton->setObjectName("projectButton"); m_openProjectButton->show(); connect(m_openProjectButton, SIGNAL(clicked()), this, SLOT(handleOpenProjectButton())); + + QLabel* versionLabel = new QLabel(("Version " + Version::getApplicationVersion().toDisplayString()).c_str(), this); + versionLabel->setGeometry(30, 234, 300, 50); + versionLabel->setObjectName("versionLabel"); + versionLabel->show(); + + QLabel* updateLabel = new QLabel( + "check for new version", this); + updateLabel->setOpenExternalLinks(true); + updateLabel->setGeometry(30, 255, 300, 50); + updateLabel->setObjectName("updateLabel"); + updateLabel->show(); } QLabel* recentProjectsLabel = new QLabel("Recent Projects: ", this);