commit Include desktop resolution and monitor settings button, and UI

change
master
Samuel Banya 6 years ago
parent 3698c18313
commit 491246a22a

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.7.1, 2018-10-22T21:10:37. -->
<!-- Written by QtCreator 4.7.1, 2018-10-24T20:49:32. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
@ -306,8 +306,8 @@
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">lubuntuWelcomeCenter</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/sam/scripts/phabricator/lubuntuWelcomeCenter/lubuntuWelcomeCenter.pro</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">lubuntuWelcomeCenter2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/sam/scripts/phabricator/lubuntu-welcome-center/lubuntuWelcomeCenter.pro</value>
<value type="bool" key="QmakeProjectManager.QmakeRunConfiguration.UseLibrarySearchPath">true</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">lubuntuWelcomeCenter.pro</value>

@ -1,11 +1,67 @@
#include <QApplication>
#include <QPushButton>
#include "window.h"
int main(int argc, char **argv)
{
QApplication app (argc, argv);
Window window;
// Set size of the window
QWidget window;
window.setFixedSize(800, 600);
// Font
QFont font ("Courier");
// Button Format
// (x pos, y pos, width, length)
// News Button
QPushButton *buttonNews = new QPushButton("Latest news for Lubuntu", &window);
buttonNews->setGeometry(300, 50, 250, 30);
buttonNews->setToolTip("Click here for the lastest news for Lubuntu 18.40 Cosmic Cuttlefish!");
buttonNews->setFont(font);
// Change Monitor Settings Button
QPushButton *buttonMonitorSettings = new QPushButton("Change monitor settings", &window);
buttonMonitorSettings->setGeometry(300, 125, 250, 30);
buttonMonitorSettings->setToolTip("Click here to change your monitor settings!");
buttonMonitorSettings->setFont(font);
// Change Desktop Resolution Button
QPushButton *buttonDesktopResolution = new QPushButton("Change desktop resolution", &window);
buttonDesktopResolution->setGeometry(300, 200, 250, 30);
buttonDesktopResolution->setToolTip("Click here to change your desktop resolution!");
buttonDesktopResolution->setFont(font);
// Icon Theme Button
QPushButton *buttonIconTheme = new QPushButton("Latest icon themes for Lubuntu", &window);
buttonIconTheme->setGeometry(225, 275, 400, 30);
buttonIconTheme->setToolTip("Click here to download the latest icon themes for Lubuntu 18.40 Cosmic Cuttlefish");
buttonIconTheme->setFont(font);
// Bug Button
QPushButton *buttonBug = new QPushButton("Report bugs to Lubuntu team", &window);
buttonBug->setGeometry(225, 350, 400, 30);
buttonBug->setToolTip("Click here to report bugs to the Lubuntu development team!");
buttonBug->setFont(font);
// Manual Button
QPushButton *buttonManual = new QPushButton("Read manual for Lubuntu help", &window);
buttonManual->setGeometry(225, 425, 400, 30);
buttonManual->setToolTip("Click here to access the manual for Lubuntu 18.40 Cosmic Cuttlefish!");
buttonManual->setFont(font);
// Quit Button
QPushButton *buttonQuit = new QPushButton("Quit", &window);
buttonQuit->setGeometry(300, 500, 250, 30);
buttonQuit->setToolTip("Click here to quit the Welcome Center!");
buttonQuit->setFont(font);
// Quit Functionality (Using SIGNAL event, and QApplication::instance())
// connect(m_button, SIGNAL (clicked()), QApplication::instance(), SLOT (quit()));
// Window window;
window.show();
return app.exec();

@ -5,45 +5,5 @@
Window::Window(QWidget *parent) :
QWidget(parent)
{
// Set size of the window
setFixedSize(800, 600);
// Font
QFont font ("Courier");
// Button Format
// (x pos, y pos, width, length)
// News Button
m_button = new QPushButton("Latest news for Lubuntu", this);
m_button->setGeometry(300, 50, 250, 30);
m_button->setToolTip("Click here for the lastest news for Lubuntu 18.40 Cosmic Cuttlefish!");
m_button->setFont(font);
// Icon Theme Button
m_button = new QPushButton("Latest icon themes for Lubuntu", this);
m_button->setGeometry(220, 150, 400, 30);
m_button->setToolTip("Click here to download the latest icon themes for Lubuntu 18.40 Cosmic Cuttlefish");
m_button->setFont(font);
// Bug Button
m_button = new QPushButton("Report bugs to Lubuntu team", this);
m_button->setGeometry(220, 250, 400, 30);
m_button->setToolTip("Click here to report bugs to the Lubuntu development team!");
m_button->setFont(font);
// Manual Button
m_button = new QPushButton("Read manual for Lubuntu help", this);
m_button->setGeometry(220, 350, 400, 30);
m_button->setToolTip("Click here to access the manual for Lubuntu 18.40 Cosmic Cuttlefish!");
m_button->setFont(font);
// Quit Button
m_button = new QPushButton("Quit", this);
m_button->setGeometry(300, 450, 250, 30);
m_button->setToolTip("Click here to quit the Welcome Center!");
m_button->setFont(font);
// Quit Functionality (Using SIGNAL event, and QApplication::instance())
// connect(m_button, SIGNAL (clicked()), QApplication::instance(), SLOT (quit()));
}

@ -9,7 +9,6 @@ class Window : public QWidget
public:
explicit Window(QWidget *parent = 0);
private:
QPushButton *m_button;
};
#endif // WINDOW_H

Loading…
Cancel
Save