mirror of
https://github.com/lubuntu-team/welcome.git
synced 2025-08-11 07:54:02 +00:00
Add software, donate, bugs, buttons.
This commit is contained in:
parent
9eb1c261d5
commit
911674da42
@ -55,8 +55,8 @@ void MainWindow::on_buttonLXQtConfigurationCenter_clicked()
|
|||||||
|
|
||||||
void MainWindow::on_buttonCommunity_clicked()
|
void MainWindow::on_buttonCommunity_clicked()
|
||||||
{
|
{
|
||||||
QString contributeLink = "https://lubuntu.me/links/";
|
QString communityLink = "https://lubuntu.me/links/";
|
||||||
QDesktopServices::openUrl(QUrl(contributeLink));
|
QDesktopServices::openUrl(QUrl(communityLink));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_buttonContribute_clicked()
|
void MainWindow::on_buttonContribute_clicked()
|
||||||
@ -65,6 +65,29 @@ void MainWindow::on_buttonContribute_clicked()
|
|||||||
QDesktopServices::openUrl(QUrl(contributeLink));
|
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()
|
void MainWindow::on_actionAbout_triggered()
|
||||||
{
|
{
|
||||||
// QAction: this class helps provide icons and images for individual methods
|
// 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:
|
// 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
|
// http://doc.qt.io/qt-5/qml-qtquick-controls-checkbox.html#checkedState-prop
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,6 +48,12 @@ private slots:
|
|||||||
|
|
||||||
void on_checkBox_stateChanged(int arg1);
|
void on_checkBox_stateChanged(int arg1);
|
||||||
|
|
||||||
|
void on_buttonSoftware_clicked();
|
||||||
|
|
||||||
|
void on_buttonDonate_clicked();
|
||||||
|
|
||||||
|
void on_buttonBugReports_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::MainWindow *ui;
|
Ui::MainWindow *ui;
|
||||||
};
|
};
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>600</width>
|
<width>604</width>
|
||||||
<height>300</height>
|
<height>312</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -16,7 +16,7 @@
|
|||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">color: white;
|
<string notr="true">color: white;
|
||||||
|
|
||||||
background-color: black;</string>
|
background-color: rgb(61, 61, 61);</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralWidget">
|
<widget class="QWidget" name="centralWidget">
|
||||||
<layout class="QFormLayout" name="formLayout">
|
<layout class="QFormLayout" name="formLayout">
|
||||||
@ -72,17 +72,41 @@ background-color: black;</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="buttonSoftware">
|
||||||
|
<property name="text">
|
||||||
|
<string>Software</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="buttonDonate">
|
||||||
|
<property name="text">
|
||||||
|
<string>Donate To Lubuntu</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="buttonBugReports">
|
||||||
|
<property name="text">
|
||||||
|
<string>Bug Reporting</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTextEdit" name="textEdit">
|
<widget class="QTextEdit" name="textEdit">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">background color:rgb(25, 25, 25)</string>
|
||||||
|
</property>
|
||||||
<property name="html">
|
<property name="html">
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><!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">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
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=" 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="-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>
|
<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; }
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkBox">
|
<widget class="QCheckBox" name="checkBox">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">background color:rgb(35, 35, 35)</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Show this window at startup</string>
|
<string>Show this window at startup</string>
|
||||||
</property>
|
</property>
|
||||||
@ -108,8 +135,8 @@ p, li { white-space: pre-wrap; }
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>600</width>
|
<width>604</width>
|
||||||
<height>34</height>
|
<height>28</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
@ -139,8 +166,6 @@ p, li { white-space: pre-wrap; }
|
|||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="welcomecenterresource.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user