equal
deleted
inserted
replaced
31 { |
31 { |
32 public: |
32 public: |
33 SlidingWidget(QGraphicsItem* parent = 0); |
33 SlidingWidget(QGraphicsItem* parent = 0); |
34 virtual ~SlidingWidget(); |
34 virtual ~SlidingWidget(); |
35 void setWindow(QGraphicsWidget* window); |
35 void setWindow(QGraphicsWidget* window); |
|
36 qreal setSlide(qreal scrollPos); |
36 qreal slide(qreal delta); |
37 qreal slide(qreal delta); |
37 qreal shrink(qreal delta); |
38 qreal shrink(qreal delta); |
38 void setShrinkMax(qreal value) {m_shrinkMax = value;} |
39 void setShrinkMax(qreal value) {m_shrinkMax = value;} |
39 void attachItem(QGraphicsWidget * item); |
40 void attachItem(QGraphicsWidget * item); |
40 void detachItem(QGraphicsWidget * item); |
41 void detachItem(QGraphicsWidget * item); |
|
42 QSize viewPortSize(bool ); |
41 protected: |
43 protected: |
42 virtual void resizeEvent(QGraphicsSceneResizeEvent *ev); |
44 virtual void resizeEvent(QGraphicsSceneResizeEvent *ev); |
43 private: |
45 private: |
44 QGraphicsWidget *m_top; |
46 QGraphicsWidget *m_top; |
45 QGraphicsWidget *m_window; |
47 QGraphicsWidget *m_window; |