fix styling, refactor some variables, simplified some code
This commit is contained in:
@@ -1,21 +1,25 @@
|
||||
# pragma once
|
||||
# include <QGridLayout>
|
||||
# include <QWidget>
|
||||
# include <QLabel>
|
||||
# include <QDateTime>
|
||||
# include "../../Controller/PlanGridController/PlanGridController.hpp"
|
||||
# include "../Widgets/GridItem.hpp"
|
||||
#pragma once
|
||||
|
||||
#include <QGridLayout>
|
||||
#include <QWidget>
|
||||
#include <QLabel>
|
||||
#include <QDateTime>
|
||||
|
||||
#include "../../Controller/PlanGridController/PlanGridController.hpp"
|
||||
#include "../Widgets/GridItem.hpp"
|
||||
|
||||
class PlanGrid : public QWidget {
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
private:
|
||||
QString weekdays[5];
|
||||
QString times[5];
|
||||
|
||||
void populateGrid();
|
||||
QString m_weekdays[5];
|
||||
QString m_times[5];
|
||||
|
||||
void populateGrid( );
|
||||
|
||||
protected:
|
||||
QGridLayout* gridLayout;
|
||||
QMap<QPair<QString, QString>, QLabel*>* planMap;
|
||||
QGridLayout* gridLayout;
|
||||
QMap<QPair<QString, QString>, QLabel*>* planMap;
|
||||
|
||||
public:
|
||||
PlanGrid(QWidget* parent = nullptr);
|
||||
};
|
||||
PlanGrid(QWidget* parent = nullptr);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user