You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.7 KiB
63 lines
1.7 KiB
// Copyright (C) 2018 Lubuntu
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#include "mainwindow.h"
|
|
#include "ui_mainwindow.h"
|
|
#include <QDesktopServices>
|
|
#include <QUrl>
|
|
#include <QDir>
|
|
#include <QProcess>
|
|
|
|
MainWindow::MainWindow(QWidget *parent) :
|
|
QMainWindow(parent),
|
|
ui(new Ui::MainWindow)
|
|
{
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
MainWindow::~MainWindow()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void MainWindow::on_buttonManual_clicked()
|
|
{
|
|
QString manualLink = "https://wiki.ubuntu.com/Lubuntu/DocumentationTeam/Manual";
|
|
QDesktopServices::openUrl(QUrl(manualLink));
|
|
|
|
}
|
|
|
|
void MainWindow::on_buttonMonitorSetup_clicked()
|
|
{
|
|
QProcess *process = new QProcess(this);
|
|
QString file = "/usr/bin/lxqt-config-monitor";
|
|
process->start(file);
|
|
}
|
|
|
|
void MainWindow::on_buttonControlCenter_clicked()
|
|
{
|
|
}
|
|
|
|
void MainWindow::on_buttonCommunity_clicked()
|
|
{
|
|
// This will open up another UI window that contains more community specific information
|
|
}
|
|
|
|
void MainWindow::on_buttonContribute_clicked()
|
|
{
|
|
QString contributeLink = "https://launchpad.net/~lubuntu-wiki-docs";
|
|
QDesktopServices::openUrl(QUrl(contributeLink));
|
|
}
|