Mercurial > hg > svgui
diff widgets/Thumbwheel.h @ 189:5b7472db612b
* Add large chunks of context help in the optional status bar
* Add an extra overlay mode in which even the centre frame is disabled
* Fixes to FTP retrieval
author | Chris Cannam |
---|---|
date | Fri, 19 Jan 2007 13:13:14 +0000 |
parents | e7cf6044c2a0 |
children | c492902dba40 |
line wrap: on
line diff
--- a/widgets/Thumbwheel.h Fri Jan 12 21:52:56 2007 +0000 +++ b/widgets/Thumbwheel.h Fri Jan 19 13:13:14 2007 +0000 @@ -36,13 +36,6 @@ bool getShowScale() const; int getValue() const; - virtual void mousePressEvent(QMouseEvent *e); - virtual void mouseDoubleClickEvent(QMouseEvent *e); - virtual void mouseMoveEvent(QMouseEvent *e); - virtual void mouseReleaseEvent(QMouseEvent *e); - virtual void wheelEvent(QWheelEvent *e); - virtual void paintEvent(QPaintEvent *e); - void setRangeMapper(RangeMapper *mapper); // I take ownership, will delete const RangeMapper *getRangeMapper() const { return m_rangeMapper; } float getMappedValue() const; @@ -54,6 +47,9 @@ signals: void valueChanged(int); + void mouseEntered(); + void mouseLeft(); + public slots: void setMinimumValue(int min); void setMaximumValue(int max); @@ -68,7 +64,16 @@ protected slots: void updateMappedValue(int value); -private: +protected: + virtual void mousePressEvent(QMouseEvent *e); + virtual void mouseDoubleClickEvent(QMouseEvent *e); + virtual void mouseMoveEvent(QMouseEvent *e); + virtual void mouseReleaseEvent(QMouseEvent *e); + virtual void wheelEvent(QWheelEvent *e); + virtual void paintEvent(QPaintEvent *e); + virtual void enterEvent(QEvent *); + virtual void leaveEvent(QEvent *); + int m_min; int m_max; int m_default;