summaryrefslogtreecommitdiff
path: root/client/collapser.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/collapser.h')
-rw-r--r--client/collapser.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/collapser.h b/client/collapser.h
index 2a3581b..d74a4cf 100644
--- a/client/collapser.h
+++ b/client/collapser.h
@@ -29,6 +29,7 @@
#include <QWidget>
#include <QTime>
+#include <QTimer>
class Collapser : public QWidget {
Q_OBJECT
@@ -50,13 +51,14 @@ public slots:
void collapse();
void expand();
void toggleCollapse();
+ void anim();
signals:
void collapsing();
void expanding();
protected:
- void timerEvent(QTimerEvent *);
+ // void timerEvent(QTimerEvent *);
private:
QWidget *collapsed;
@@ -64,9 +66,10 @@ private:
bool is_collapsed;
- void anim();
QTime t_anim;
int timer_id;
+
+ QTimer *timer;
};
#endif/*__PRACRO_COLLAPSER_H__*/