comparison widgets/SelectableLabel.h @ 1406:a18e78b9c78b fix-static-analysis

Use override throughout
author Chris Cannam
date Mon, 26 Nov 2018 13:52:27 +0000
parents f8fcfbe13c8f
children 05d614f6e46d
comparison
equal deleted inserted replaced
1405:4c359c2b220c 1406:a18e78b9c78b
38 public slots: 38 public slots:
39 void setSelected(bool); 39 void setSelected(bool);
40 void toggle(); 40 void toggle();
41 41
42 protected: 42 protected:
43 virtual void mousePressEvent(QMouseEvent *e); 43 void mousePressEvent(QMouseEvent *e) override;
44 virtual void mouseReleaseEvent(QMouseEvent *e); 44 void mouseReleaseEvent(QMouseEvent *e) override;
45 virtual void mouseDoubleClickEvent(QMouseEvent *e); 45 void mouseDoubleClickEvent(QMouseEvent *e) override;
46 virtual void enterEvent(QEvent *); 46 void enterEvent(QEvent *) override;
47 virtual void leaveEvent(QEvent *); 47 void leaveEvent(QEvent *) override;
48 void setupStyle(); 48 void setupStyle();
49 QString m_selectedText; 49 QString m_selectedText;
50 QString m_unselectedText; 50 QString m_unselectedText;
51 bool m_selected; 51 bool m_selected;
52 bool m_swallowRelease; 52 bool m_swallowRelease;