Changeset View
Changeset View
Standalone View
Standalone View
src/statistics/lessonstatisticsview.h
Show All 22 Lines | |||||
23 | * @author Frederik Gladhorn <frederik.gladhorn@kdemail.net> | 23 | * @author Frederik Gladhorn <frederik.gladhorn@kdemail.net> | ||
24 | */ | 24 | */ | ||
25 | class LessonStatisticsView : public ContainerView | 25 | class LessonStatisticsView : public ContainerView | ||
26 | { | 26 | { | ||
27 | Q_OBJECT | 27 | Q_OBJECT | ||
28 | 28 | | |||
29 | public: | 29 | public: | ||
30 | LessonStatisticsView(QWidget *parent); | 30 | LessonStatisticsView(QWidget *parent); | ||
31 | ~LessonStatisticsView(); | ||||
31 | void setModel(ContainerModel *model) Q_DECL_OVERRIDE; | 32 | void setModel(ContainerModel *model) Q_DECL_OVERRIDE; | ||
33 | void saveExpandedStatus() const; | ||||
aacid: safe -> save | |||||
Seems that I should some English lessons with Parley instead of hacking its code ;-) hriesenbeck: Seems that I should some English lessons with Parley instead of hacking its code ;-) | |||||
34 | void restoreExpandedStatus(); | ||||
32 | 35 | | |||
33 | public Q_SLOTS: | 36 | public Q_SLOTS: | ||
34 | void adjustColumnWidths(); | 37 | void adjustColumnWidths(); | ||
35 | 38 | | |||
36 | protected: | 39 | protected: | ||
37 | void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; | 40 | void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; | ||
38 | 41 | | |||
39 | private Q_SLOTS: | 42 | private Q_SLOTS: | ||
40 | void removeGrades(); | 43 | void removeGrades(); | ||
41 | void removeGradesChildren(); | 44 | void removeGradesChildren(); | ||
42 | void sectionResized(int index, int /*oldSize*/, int /*newSize*/); | 45 | void sectionResized(int index, int /*oldSize*/, int /*newSize*/); | ||
43 | 46 | | |||
44 | private: | 47 | private: | ||
45 | void setModel(QAbstractItemModel *model) Q_DECL_OVERRIDE { | 48 | void setModel(QAbstractItemModel *model) Q_DECL_OVERRIDE { | ||
46 | Q_UNUSED(model) | 49 | Q_UNUSED(model) | ||
47 | } | 50 | } | ||
51 | void getCollapsedItems(QStringList &collapsedItems, const QModelIndex &item, | ||||
52 | QString name) const; | ||||
53 | void setCollapsedItems(const QStringList &collapsedItems, const QModelIndex &item, | ||||
54 | QString name); | ||||
48 | }; | 55 | }; | ||
49 | 56 | | |||
50 | #endif | 57 | #endif |
safe -> save