From 2b528c1039eb36807ba291478b447a9f34154c0d Mon Sep 17 00:00:00 2001 From: Samuel Banya Date: Fri, 30 Nov 2018 20:55:10 -0500 Subject: [PATCH] Commit: Adding working monitor settings button functionality --- lubuntuWelcomeCenter.pro.user | 295 +------------ lubuntuWelcomeCenter.pro.user.3ad3f86 | 601 ++++++++++++++++++++++++++ mainwindow.cpp | 22 +- 3 files changed, 621 insertions(+), 297 deletions(-) create mode 100644 lubuntuWelcomeCenter.pro.user.3ad3f86 diff --git a/lubuntuWelcomeCenter.pro.user b/lubuntuWelcomeCenter.pro.user index b61738d..23e6092 100644 --- a/lubuntuWelcomeCenter.pro.user +++ b/lubuntuWelcomeCenter.pro.user @@ -1,10 +1,10 @@ - + EnvironmentId - {3ad3f86a-0ba2-40ce-ad95-b88db7dc70bf} + {35da86b0-5805-413d-ad6d-c6eb4afb7663} ProjectExplorer.Project.ActiveTarget @@ -54,22 +54,19 @@ ProjectExplorer.Project.PluginSettings - - - true - + ProjectExplorer.Project.Target.0 - Desktop Qt 5.11.2 GCC 64bit - Desktop Qt 5.11.2 GCC 64bit - qt.qt5.5112.gcc_64_kit + Desktop + Desktop + {cca6c687-0e9a-40f1-930f-b0ab516ee288} 0 0 0 - /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_qt_qt5-Debug + /home/sam/scripts/phabricator/lubuntuBugs/build-lubuntuWelcomeCenter-Desktop-Debug true @@ -129,7 +126,7 @@ true - /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_qt_qt5-Release + /home/sam/scripts/phabricator/lubuntuBugs/build-lubuntuWelcomeCenter-Desktop-Release true @@ -140,7 +137,7 @@ false false - true + false true @@ -189,7 +186,7 @@ true - /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_qt_qt5-Profile + /home/sam/scripts/phabricator/lubuntuBugs/build-lubuntuWelcomeCenter-Desktop-Profile true @@ -200,7 +197,7 @@ false true - true + false true @@ -307,275 +304,13 @@ lubuntuWelcomeCenter - Qt4ProjectManager.Qt4RunConfiguration:/home/sam/scripts/lubuntuWelcomeCenter/lubuntuWelcomeCenter.pro + Qt4ProjectManager.Qt4RunConfiguration:/home/sam/scripts/phabricator/lubuntuBugs/lubuntu-welcome-center/lubuntuWelcomeCenter.pro true lubuntuWelcomeCenter.pro + false - /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_qt_qt5-Debug - 3768 - false - true - false - false - true - - 1 - - - - ProjectExplorer.Project.Target.1 - - Desktop Qt 5.11.2 GCC 64bit - Desktop Qt 5.11.2 GCC 64bit - {927c6f31-6bb3-4b42-82c9-dfe01d201dc9} - 0 - 0 - 0 - - /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_927c6f-Debug - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - -w - -r - - false - - - - 2 - Build - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - -w - -r - - true - clean - - - 1 - Clean - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Debug - Debug - Qt4ProjectManager.Qt4BuildConfiguration - 2 - true - - - /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_927c6f-Release - - - true - qmake - - QtProjectManager.QMakeBuildStep - false - - false - false - true - - - true - Make - - Qt4ProjectManager.MakeStep - - -w - -r - - false - - - - 2 - Build - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - -w - -r - - true - clean - - - 1 - Clean - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Release - Release - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - - /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_927c6f-Profile - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - true - true - - - true - Make - - Qt4ProjectManager.MakeStep - - -w - -r - - false - - - - 2 - Build - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - -w - -r - - true - clean - - - 1 - Clean - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Profile - Profile - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - 3 - - - 0 - Deploy - - ProjectExplorer.BuildSteps.Deploy - - 1 - Deploy Configuration - - ProjectExplorer.DefaultDeployConfiguration - - 1 - - - false - false - 1000 - - true - - false - false - false - false - true - 0.01 - 10 - true - 1 - 25 - - 1 - true - false - true - valgrind - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - - 2 - - - - - - Custom Executable - - ProjectExplorer.CustomExecutableRunConfiguration + /home/sam/scripts/phabricator/lubuntuBugs/build-lubuntuWelcomeCenter-Desktop-Debug 3768 false true @@ -588,7 +323,7 @@ ProjectExplorer.Project.TargetCount - 2 + 1 ProjectExplorer.Project.Updater.FileVersion diff --git a/lubuntuWelcomeCenter.pro.user.3ad3f86 b/lubuntuWelcomeCenter.pro.user.3ad3f86 new file mode 100644 index 0000000..b61738d --- /dev/null +++ b/lubuntuWelcomeCenter.pro.user.3ad3f86 @@ -0,0 +1,601 @@ + + + + + + EnvironmentId + {3ad3f86a-0ba2-40ce-ad95-b88db7dc70bf} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + true + + + + ProjectExplorer.Project.Target.0 + + Desktop Qt 5.11.2 GCC 64bit + Desktop Qt 5.11.2 GCC 64bit + qt.qt5.5112.gcc_64_kit + 0 + 0 + 0 + + /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_qt_qt5-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_qt_qt5-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + true + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_qt_qt5-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + true + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy Configuration + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + lubuntuWelcomeCenter + + Qt4ProjectManager.Qt4RunConfiguration:/home/sam/scripts/lubuntuWelcomeCenter/lubuntuWelcomeCenter.pro + true + + lubuntuWelcomeCenter.pro + + /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_qt_qt5-Debug + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.Target.1 + + Desktop Qt 5.11.2 GCC 64bit + Desktop Qt 5.11.2 GCC 64bit + {927c6f31-6bb3-4b42-82c9-dfe01d201dc9} + 0 + 0 + 0 + + /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_927c6f-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_927c6f-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + true + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + /home/sam/scripts/build-lubuntuWelcomeCenter-Desktop_Qt_5_11_2_GCC_64bit_927c6f-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + true + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy Configuration + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + + + + + Custom Executable + + ProjectExplorer.CustomExecutableRunConfiguration + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 2 + + + ProjectExplorer.Project.Updater.FileVersion + 18 + + + Version + 18 + + diff --git a/mainwindow.cpp b/mainwindow.cpp index 41cd1d5..92621d4 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -17,26 +17,14 @@ #include "ui_mainwindow.h" #include #include +#include +#include MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); - - // connect(ui->buttonManual, SIGNAL(clicked()), - // IDK, SLOT(OPENURL)); - - /* - // Connect the signal of the horizontal slider to the slot of the first progress bar - connect(ui->buttonManual, SIGNAL(valueChanged(int)), - ui->progressBar, SLOT(setValue(int))); - - - // Disconnect the first progress bar with disconnect() - disconnect(ui->horizontalSlider, SIGNAL(valueChanged(int)), - ui->progressBar, SLOT(setValue(int))); - */ } MainWindow::~MainWindow() @@ -53,9 +41,9 @@ void MainWindow::on_buttonManual_clicked() void MainWindow::on_buttonMonitorSetup_clicked() { - // Monitor Setup link: - // This is in: /usr/share/applications/lxrandr.desktop - + QProcess *process = new QProcess(this); + QString file = "/usr/bin/lxqt-config-monitor"; + process->start(file); } void MainWindow::on_buttonControlCenter_clicked()