aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-info/MainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-07-20 16:03:49 -0400
committerKen Moore <moorekou@gmail.com>2016-07-20 16:03:49 -0400
commitd8f236c8f5cdb049559b34276fa3154b28188205 (patch)
tree6fa73d97ceeb7f6bd224da581a1b4f4549bbc2a0 /src-qt5/core/lumina-info/MainUI.cpp
parentFix up *when* changes are detected on the general user options page of lumina... (diff)
downloadlumina-d8f236c8f5cdb049559b34276fa3154b28188205.tar.gz
lumina-d8f236c8f5cdb049559b34276fa3154b28188205.tar.bz2
lumina-d8f236c8f5cdb049559b34276fa3154b28188205.zip
[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.
Diffstat (limited to 'src-qt5/core/lumina-info/MainUI.cpp')
-rw-r--r--src-qt5/core/lumina-info/MainUI.cpp21
1 files changed, 19 insertions, 2 deletions
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());
+}
bgstack15