From d8f236c8f5cdb049559b34276fa3154b28188205 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 20 Jul 2016 16:03:49 -0400 Subject: [INTERFACE CHANGE] As recommended by docs team, the lumina-info interface has been streamlined a bit so there are individual buttons for each of the external links instead of the label/URL pairings. --- src-qt5/core/lumina-info/MainUI.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'src-qt5/core/lumina-info/MainUI.cpp') diff --git a/src-qt5/core/lumina-info/MainUI.cpp b/src-qt5/core/lumina-info/MainUI.cpp index c44509bb..32c161ad 100644 --- a/src-qt5/core/lumina-info/MainUI.cpp +++ b/src-qt5/core/lumina-info/MainUI.cpp @@ -32,13 +32,15 @@ void MainUI::updateUI(){ //Load the UI from all the resources / library info this->setWindowIcon( LXDG::findIcon("lumina","") ); ui->label_icon->setPixmap( QPixmap(":Images/Lumina-logo.png").scaledToHeight(ui->label_icon->height(), Qt::SmoothTransformation) ); + ui->tool_bugs->setIcon( LXDG::findIcon("dialog-warning","")); + ui->tool_irc->setIcon( LXDG::findIcon("im-user","")); + ui->tool_sources->setIcon( LXDG::findIcon("documentation","")); + ui->tool_website->setIcon( LXDG::findIcon("go-home","")); connect(ui->push_close, SIGNAL(clicked()), this, SLOT(close()) ); //General Tab ui->label_version->setText( LUtils::LuminaDesktopVersion() ); ui->label_OS->setText( LOS::OSName() ); connect(ui->tool_aboutQt, SIGNAL(clicked()), this, SLOT(showQtInfo()) ); - connect(ui->label_doc, SIGNAL(linkActivated(const QString&)), this, SLOT(LinkClicked(QString)) ); - connect(ui->label_source, SIGNAL(linkActivated(const QString&)), this, SLOT(LinkClicked(QString)) ); //License Tab ui->text_license->setPlainText( LUtils::readFile(":LICENSE").join("\n") ); //Acknowledgements Tab @@ -61,3 +63,18 @@ void MainUI::showSponsor(QListWidgetItem *item){ void MainUI::LinkClicked(QString url){ QProcess::startDetached("lumina-open \""+url+"\""); } +void MainUI::on_tool_bugs_clicked(){ + LinkClicked(ui->tool_bugs->whatsThis()); +} + +void MainUI::on_tool_irc_clicked(){ + LinkClicked(ui->tool_irc->whatsThis()); +} + +void MainUI::on_tool_sources_clicked(){ + LinkClicked(ui->tool_sources->whatsThis()); +} + +void MainUI::on_tool_website_clicked(){ + LinkClicked(ui->tool_website->whatsThis()); +} -- cgit