calculations
This commit is contained in:
+5
-1
@@ -2,6 +2,7 @@
|
||||
#define CMONTHLYVIEW_H
|
||||
|
||||
|
||||
#include "cmonthlybooking.h"
|
||||
#include "cmonthlyitemdelegate.h"
|
||||
#include "cpublicholiday.h"
|
||||
|
||||
@@ -22,7 +23,7 @@ class cMonthlyView : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit cMonthlyView(const QDate& date, cPublicHoliday* lpPublicHoliday, cBookingList* lpBookingList, QWidget *parent = nullptr);
|
||||
explicit cMonthlyView(const QDate& date, cMonthlyBookingList* lpMonthlyBookingList, cPublicHoliday* lpPublicHoliday, cBookingList* lpBookingList, QWidget *parent = nullptr);
|
||||
~cMonthlyView();
|
||||
|
||||
void setDate(const QDate& date);
|
||||
@@ -31,9 +32,11 @@ private:
|
||||
bool m_loading;
|
||||
QStandardItemModel* m_lpMonthlyListModel;
|
||||
QMap<QString, QString> m_code;
|
||||
cMonthlyBookingList* m_lpMonthlyBookingList;
|
||||
cPublicHoliday* m_lpPublicHoliday;
|
||||
cBookingList* m_lpBookingList;
|
||||
QDate m_date;
|
||||
cMonthlyBooking* m_lpMonthlyBooking;
|
||||
|
||||
void setBackground(const int day, const QString& code);
|
||||
void setText(QStandardItem* lpItem, const QTime& time);
|
||||
@@ -45,6 +48,7 @@ private slots:
|
||||
void onTimeChanged(const int day, const int field, const QTime& time);
|
||||
void onTextChanged(const int day, const int field, const QString& text);
|
||||
void onDateChanged(const QDate& date);
|
||||
void onUeberstundenChanged(const QTime& time);
|
||||
};
|
||||
|
||||
#endif // CMONTHLYVIEW_H
|
||||
|
||||
Reference in New Issue
Block a user