diff options
Diffstat (limited to 'client/collapser.h')
-rw-r--r-- | client/collapser.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/client/collapser.h b/client/collapser.h index 6e9c8b4..fa25dd5 100644 --- a/client/collapser.h +++ b/client/collapser.h @@ -33,11 +33,19 @@ class Collapser : public QWidget { Q_OBJECT public: - Collapser(QWidget *collapsed, QWidget *expanded, bool setcollapsed = true); + Collapser(QWidget *collapsed = NULL, QWidget *expanded = NULL, bool setcollapsed = true); bool isCollapsed(); void setCollapsed(bool setcollapsed); + void setWidgets(QWidget *collapsed, QWidget *expanded); + + QWidget *collapsedWidget(); + QWidget *expandedWidget(); + + void setCollapsedWidget(QWidget *collapsed); + void setExpandedWidget(QWidget *expanded); + public slots: void collapse(); void expand(); @@ -48,10 +56,7 @@ protected: private: QWidget *collapsed; - int c_height; - QWidget *expanded; - int e_height; bool is_collapsed; |