diff options
| author | deva <deva> | 2011-02-23 07:23:11 +0000 | 
|---|---|---|
| committer | deva <deva> | 2011-02-23 07:23:11 +0000 | 
| commit | 8fbf461b279c0b96fdf5b764ef04376b5f7da7ec (patch) | |
| tree | 458975653c6c84a1b005a6438fc548fa14f5df9d /client/collapser.h | |
| parent | 47561fdd6e67ab1918acf8f44ed54759bdf467a7 (diff) | |
Fade between widgets introduced in Collapser.
Diffstat (limited to 'client/collapser.h')
| -rw-r--r-- | client/collapser.h | 12 | 
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; | 
