Skip to content
Snippets Groups Projects
Commit f79c5e0e authored by Silas Dohm's avatar Silas Dohm
Browse files

cleanup

parent 32c741cf
Branches
No related tags found
No related merge requests found
#include "window.h" #include "window.h"
#include <QApplication> #include <QApplication>
#include <QStandardPaths>
#include <QDebug> #include <QDebug>
#include <QThread> #include <QPushButton>
#include <QProgressBar>
#include <QSlider> #include <QSlider>
#include <QGridLayout> #include <QGridLayout>
#include <QHBoxLayout> #include <QHBoxLayout>
...@@ -11,6 +9,7 @@ ...@@ -11,6 +9,7 @@
#include <QSpacerItem> #include <QSpacerItem>
#include <QTimer> #include <QTimer>
Window::Window(QWidget *parent) Window::Window(QWidget *parent)
: QWidget{parent} : QWidget{parent}
{ {
...@@ -25,9 +24,9 @@ Window::Window(QWidget *parent) ...@@ -25,9 +24,9 @@ Window::Window(QWidget *parent)
m_slider->setValue(m_delay); m_slider->setValue(m_delay);
connect(m_slider, SIGNAL(valueChanged(int)), this, SLOT(setValue(int))); connect(m_slider, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
QHBoxLayout *horizontalLayout = new QHBoxLayout(this); horizontalLayout = new QHBoxLayout(this);
QVBoxLayout *verticalLayout = new QVBoxLayout(); verticalLayout = new QVBoxLayout();
QGridLayout *layout = new QGridLayout(); layout = new QGridLayout();
m_spacer[0] = new QSpacerItem(4, 4, QSizePolicy::Minimum, QSizePolicy::Fixed); m_spacer[0] = new QSpacerItem(4, 4, QSizePolicy::Minimum, QSizePolicy::Fixed);
m_spacer[1] = new QSpacerItem(4, 4, QSizePolicy::Minimum, QSizePolicy::Fixed); m_spacer[1] = new QSpacerItem(4, 4, QSizePolicy::Minimum, QSizePolicy::Fixed);
......
...@@ -2,11 +2,13 @@ ...@@ -2,11 +2,13 @@
#define WINDOW_H #define WINDOW_H
#include <QWidget> #include <QWidget>
#include <QPushButton>
#include <QProgressBar>
#include <QSlider>
#include "cell.h" #include "cell.h"
class QSpacerItem; class QSpacerItem;
class QHBoxLayout;
class QVBoxLayout;
class QGridLayout;
class QPushButton;
class QSlider;
class Window : public QWidget class Window : public QWidget
{ {
Q_OBJECT Q_OBJECT
...@@ -20,6 +22,9 @@ private: ...@@ -20,6 +22,9 @@ private:
std::array<Cell, 81> m_cell; std::array<Cell, 81> m_cell;
int m_delay = 300; int m_delay = 300;
QSpacerItem *m_spacer[3]; QSpacerItem *m_spacer[3];
QHBoxLayout *horizontalLayout;
QVBoxLayout *verticalLayout;
QGridLayout *layout;
struct History struct History
{ {
Cell *cell; Cell *cell;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment