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