summaryrefslogtreecommitdiff
path: root/client/collapser.h
diff options
context:
space:
mode:
authordeva <deva>2011-02-23 07:23:11 +0000
committerdeva <deva>2011-02-23 07:23:11 +0000
commit8fbf461b279c0b96fdf5b764ef04376b5f7da7ec (patch)
tree458975653c6c84a1b005a6438fc548fa14f5df9d /client/collapser.h
parent47561fdd6e67ab1918acf8f44ed54759bdf467a7 (diff)
Fade between widgets introduced in Collapser.
Diffstat (limited to 'client/collapser.h')
-rw-r--r--client/collapser.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/client/collapser.h b/client/collapser.h
index 2b1ad3c..9702351 100644
--- a/client/collapser.h
+++ b/client/collapser.h
@@ -69,11 +69,19 @@ protected:
private:
class Placeholder : public QWidget {
public:
- QPixmap pixmap;
- void grab(QWidget *w);
+ QPixmap pixmap_from;
+ QPixmap pixmap_to;
+
+ void grab_from(QWidget *w);
+ void grab_to(QWidget *w);
+
+ void setWeight(double weight);
protected:
void paintEvent(QPaintEvent*);
+
+ private:
+ double weight;
};
Placeholder placeholder;