comparison widgets/Panner.h @ 1414:fa986b91d77f

Merge from branch fix-static-analysis
author Chris Cannam
date Wed, 09 Jan 2019 15:24:51 +0000
parents a18e78b9c78b
children
comparison
equal deleted inserted replaced
1413:0930a27ebea2 1414:fa986b91d77f
41 */ 41 */
42 void setScrollUnit(float unit); 42 void setScrollUnit(float unit);
43 43
44 void getRectExtents(float &x0, float &y0, float &width, float &height); 44 void getRectExtents(float &x0, float &y0, float &width, float &height);
45 45
46 virtual QSize sizeHint() const; 46 QSize sizeHint() const override;
47 47
48 signals: 48 signals:
49 /** 49 /**
50 * Emitted when the panned rectangle is dragged or otherwise 50 * Emitted when the panned rectangle is dragged or otherwise
51 * moved. Arguments are x0, y0, width and height of the rectangle 51 * moved. Arguments are x0, y0, width and height of the rectangle
118 void scroll(bool up, int n); 118 void scroll(bool up, int n);
119 119
120 void resetToDefault(); 120 void resetToDefault();
121 121
122 protected: 122 protected:
123 virtual void mousePressEvent(QMouseEvent *e); 123 void mousePressEvent(QMouseEvent *e) override;
124 virtual void mouseDoubleClickEvent(QMouseEvent *e); 124 void mouseDoubleClickEvent(QMouseEvent *e) override;
125 virtual void mouseMoveEvent(QMouseEvent *e); 125 void mouseMoveEvent(QMouseEvent *e) override;
126 virtual void mouseReleaseEvent(QMouseEvent *e); 126 void mouseReleaseEvent(QMouseEvent *e) override;
127 virtual void wheelEvent(QWheelEvent *e); 127 void wheelEvent(QWheelEvent *e) override;
128 virtual void paintEvent(QPaintEvent *e); 128 void paintEvent(QPaintEvent *e) override;
129 virtual void enterEvent(QEvent *); 129 void enterEvent(QEvent *) override;
130 virtual void leaveEvent(QEvent *); 130 void leaveEvent(QEvent *) override;
131 131
132 void normalise(); 132 void normalise();
133 void emitAndUpdate(); 133 void emitAndUpdate();
134 134
135 float m_rectX; 135 float m_rectX;