summaryrefslogtreecommitdiff
path: root/client/collapser.h
diff options
context:
space:
mode:
authordeva <deva>2011-02-08 09:19:14 +0000
committerdeva <deva>2011-02-08 09:19:14 +0000
commita65a5d1594d09d575d9e835d684eb52675341054 (patch)
tree8829f4ffbb14b7f667fa054758e607b09fff0121 /client/collapser.h
parent9d1dc91e1e2c11ea6df8e163b0e43f1dd43655d5 (diff)
Scroll into view when a new macro is expanded.
Diffstat (limited to 'client/collapser.h')
-rw-r--r--client/collapser.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/collapser.h b/client/collapser.h
index 03d74d7..8b38359 100644
--- a/client/collapser.h
+++ b/client/collapser.h
@@ -30,11 +30,13 @@
#include <QWidget>
#include <QTime>
#include <QTimer>
+#include <QScrollArea>
class Collapser : public QWidget {
Q_OBJECT
public:
- Collapser(QWidget *collapsed = NULL, QWidget *expanded = NULL, bool setcollapsed = true);
+ Collapser(QWidget *collapsed = NULL, QWidget *expanded = NULL,
+ bool setcollapsed = true, QScrollArea *scrollarea = NULL);
bool isCollapsed();
void setCollapsed(bool setcollapsed);
@@ -66,6 +68,8 @@ private:
QWidget *collapsed;
QWidget *expanded;
+ QScrollArea *scrollarea;
+
bool is_collapsed;
QTime t_anim;