diff --git a/mainwindow.cpp b/mainwindow.cpp
index 38ed685..a95ca01 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -55,8 +55,8 @@ void MainWindow::on_buttonLXQtConfigurationCenter_clicked()
void MainWindow::on_buttonCommunity_clicked()
{
- QString contributeLink = "https://lubuntu.me/links/";
- QDesktopServices::openUrl(QUrl(contributeLink));
+ QString communityLink = "https://lubuntu.me/links/";
+ QDesktopServices::openUrl(QUrl(communityLink));
}
void MainWindow::on_buttonContribute_clicked()
@@ -65,6 +65,29 @@ void MainWindow::on_buttonContribute_clicked()
QDesktopServices::openUrl(QUrl(contributeLink));
}
+void MainWindow::on_buttonSoftware_clicked()
+{
+ // Open Discover software center
+ QProcess *process = new QProcess(this);
+ QString file = "/usr/bin/plasma-discover";
+ process->start(file);
+}
+
+void MainWindow::on_buttonDonate_clicked()
+{
+ // Open Lubuntu Donate link
+ QString donateLink = "https://lubuntu.me/donate/";
+ QDesktopServices::openUrl(QUrl(donateLink));
+}
+
+void MainWindow::on_buttonBugReports_clicked()
+{
+ // Open Lubuntu Bug reporting wiki page
+ QString bugLink = "https://phab.lubuntu.me/w/bugs/";
+ QDesktopServices::openUrl(QUrl(bugLink));
+}
+
+
void MainWindow::on_actionAbout_triggered()
{
// QAction: this class helps provide icons and images for individual methods
@@ -92,3 +115,4 @@ void MainWindow::on_checkBox_stateChanged(int arg1)
// Add checkbox stateChanged functionality that depends on a boolean variable of it being checked:
// http://doc.qt.io/qt-5/qml-qtquick-controls-checkbox.html#checkedState-prop
}
+
diff --git a/mainwindow.h b/mainwindow.h
index 1e01073..9f0caf7 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -48,6 +48,12 @@ private slots:
void on_checkBox_stateChanged(int arg1);
+ void on_buttonSoftware_clicked();
+
+ void on_buttonDonate_clicked();
+
+ void on_buttonBugReports_clicked();
+
private:
Ui::MainWindow *ui;
};
diff --git a/mainwindow.ui b/mainwindow.ui
index 5ee5c4d..15e1be3 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -6,8 +6,8 @@
0
0
- 600
- 300
+ 604
+ 312
@@ -16,7 +16,7 @@
color: white;
-background-color: black;
+background-color: rgb(61, 61, 61);
@@ -72,17 +72,41 @@ background-color: black;
+ -
+
+
+ Software
+
+
+
+ -
+
+
+ Donate To Lubuntu
+
+
+
+ -
+
+
+ Bug Reporting
+
+
+
-
-
+
+ background color:rgb(25, 25, 25)
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
-</style></head><body style=" font-family:'Ubuntu'; font-size:14pt; font-weight:400; font-style:normal;">
+</style></head><body style=" font-family:'Ubuntu'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">What's new in 19.04</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:11pt;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">Here is a simple and quick read of some of the new things in the latest version of Lubuntu</span></p>
@@ -94,6 +118,9 @@ p, li { white-space: pre-wrap; }
-
+
+ background color:rgb(35, 35, 35)
+
Show this window at startup
@@ -108,8 +135,8 @@ p, li { white-space: pre-wrap; }
0
0
- 600
- 34
+ 604
+ 28
-
-
-
+