summaryrefslogtreecommitdiff
path: root/client/collapser.h
diff options
context:
space:
mode:
authordeva <deva>2008-09-19 12:07:48 +0000
committerdeva <deva>2008-09-19 12:07:48 +0000
commit3541224f0fb3d5b7b531eef45318d7e41cb51915 (patch)
tree450e6fc9d3ae57f7db7a79cfa87386e0b7b09c92 /client/collapser.h
parenteff75e9193b0e1d9175f49e003977d524c6a2d36 (diff)
First working version of the collapser-pracro view.
Diffstat (limited to 'client/collapser.h')
-rw-r--r--client/collapser.h13
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;