diff options
author | deva <deva> | 2011-02-22 15:41:12 +0000 |
---|---|---|
committer | deva <deva> | 2011-02-22 15:41:12 +0000 |
commit | 47561fdd6e67ab1918acf8f44ed54759bdf467a7 (patch) | |
tree | 8646d75d7007f1d962fde4a0a326755cdaff0490 /client/collapser.h | |
parent | bb1c42800a2f48129100222317520b690f13c40e (diff) |
Make collapser use QPixmap during animation.
Diffstat (limited to 'client/collapser.h')
-rw-r--r-- | client/collapser.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/client/collapser.h b/client/collapser.h index 8b38359..2b1ad3c 100644 --- a/client/collapser.h +++ b/client/collapser.h @@ -30,7 +30,9 @@ #include <QWidget> #include <QTime> #include <QTimer> + #include <QScrollArea> +#include <QPixmap> class Collapser : public QWidget { Q_OBJECT @@ -65,6 +67,17 @@ protected: // void timerEvent(QTimerEvent *); private: + class Placeholder : public QWidget { + public: + QPixmap pixmap; + void grab(QWidget *w); + + protected: + void paintEvent(QPaintEvent*); + }; + + Placeholder placeholder; + QWidget *collapsed; QWidget *expanded; |