From 6243cad7682775c02bbd5b8672032b4db1433907 Mon Sep 17 00:00:00 2001 From: Fredrik Larson Date: Tue, 2 Sep 2014 23:18:45 +1000 Subject: [PATCH] Change mouse pointr type to show this is a link --- ground/openpilotgcs/src/plugins/welcome/qml/main.qml | 9 +++++++-- ground/openpilotgcs/src/plugins/welcome/welcomemode.cpp | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/welcome/qml/main.qml b/ground/openpilotgcs/src/plugins/welcome/qml/main.qml index 7425d906d..97ddb8e5d 100644 --- a/ground/openpilotgcs/src/plugins/welcome/qml/main.qml +++ b/ground/openpilotgcs/src/plugins/welcome/qml/main.qml @@ -135,15 +135,20 @@ Rectangle { text: welcomePlugin.newVersionText anchors.rightMargin: 0 font.bold: true + font.underline: true styleColor: "#00000000" horizontalAlignment: Text.AlignHCenter font.pixelSize: 14 anchors.left: textOpVersion.right - MouseArea{ + id: mouseAreaOpVersionAvailable + hoverEnabled: true + cursorShape: Qt.PointingHandCursor width: parent.width height: parent.height - onClicked: welcomePlugin.openUrl("http://wiki.openpilot.org/display/BUILDS/OpenPilot+Software+Downloads") + onClicked: { + welcomePlugin.openUrl("http://wiki.openpilot.org/display/BUILDS/OpenPilot+Software+Downloads") + } } } } diff --git a/ground/openpilotgcs/src/plugins/welcome/welcomemode.cpp b/ground/openpilotgcs/src/plugins/welcome/welcomemode.cpp index 090a77d85..f767fd21d 100644 --- a/ground/openpilotgcs/src/plugins/welcome/welcomemode.cpp +++ b/ground/openpilotgcs/src/plugins/welcome/welcomemode.cpp @@ -169,7 +169,7 @@ void WelcomeMode::networkResponseReady(QNetworkReply* reply) if(version != VersionInfo::tagOrHash8()) { - m_newVersionText = tr("(Update Available: %1)").arg(version); + m_newVersionText = tr("Update Available: %1").arg(version); emit newVersionTextChanged(); } }