From eb52ded4ad4c4a818fb204fa1de66f883dd2efa3 Mon Sep 17 00:00:00 2001 From: Leonardo Murillo Date: Thu, 9 Jan 2014 20:34:02 -0600 Subject: [PATCH] Styling + others --- interface/resources/styles/update_dialog.qss | 6 ++++++ interface/src/Application.cpp | 3 ++- interface/src/ui/UpdateDialog.cpp | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/interface/resources/styles/update_dialog.qss b/interface/resources/styles/update_dialog.qss index e69de29bb2..dbcc2fcbb2 100644 --- a/interface/resources/styles/update_dialog.qss +++ b/interface/resources/styles/update_dialog.qss @@ -0,0 +1,6 @@ +QPushButton { + background-color: #333333; + border-width: 0; + border-top-left-radius: 9px; + border-bottom-left-radius: 9px; +} diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index b0b26be540..207a068232 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -4588,7 +4588,8 @@ void Application::parseVersionXml(QNetworkReply *reply) { if (xml.name() == "Version") { xml.readNext(); - *_latestVersion = xml.text().toString(); + QString latestVersion = xml.text().toString(); + _latestVersion = &latestVersion; } } diff --git a/interface/src/ui/UpdateDialog.cpp b/interface/src/ui/UpdateDialog.cpp index 710c4e7166..8185b96e95 100644 --- a/interface/src/ui/UpdateDialog.cpp +++ b/interface/src/ui/UpdateDialog.cpp @@ -42,9 +42,11 @@ UpdateDialog::UpdateDialog(QWidget *parent, QString releaseNotes, QUrl *download } _releaseNotes = new QLabel(this); _releaseNotes->setText(releaseNotes); + _releaseNotes->setObjectName("releaseNotes"); _updateRequired = new QLabel(this); _updateRequired->setText(updateRequired); + _updateRequired->setObjectName("updateRequired"); _downloadButton = new QPushButton("Download", this); _downloadButton->setObjectName("downloadButton");