comparison widgets/LEDButton.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
47 47
48 bool state() const; 48 bool state() const;
49 QColor color() const; 49 QColor color() const;
50 int darkFactor() const; 50 int darkFactor() const;
51 51
52 virtual QSize sizeHint() const; 52 QSize sizeHint() const override;
53 virtual QSize minimumSizeHint() const; 53 QSize minimumSizeHint() const override;
54 54
55 signals: 55 signals:
56 void stateChanged(bool); 56 void stateChanged(bool);
57 57
58 void mouseEntered(); 58 void mouseEntered();
67 void toggleState(); 67 void toggleState();
68 void setColor(const QColor& color); 68 void setColor(const QColor& color);
69 void setDarkFactor(int darkfactor); 69 void setDarkFactor(int darkfactor);
70 70
71 protected: 71 protected:
72 void paintEvent(QPaintEvent *); 72 void paintEvent(QPaintEvent *) override;
73 void mousePressEvent(QMouseEvent *); 73 void mousePressEvent(QMouseEvent *) override;
74 void enterEvent(QEvent *); 74 void enterEvent(QEvent *) override;
75 void leaveEvent(QEvent *); 75 void leaveEvent(QEvent *) override;
76 76
77 bool led_state; 77 bool led_state;
78 QColor led_color; 78 QColor led_color;
79 79
80 class LEDButtonPrivate; 80 class LEDButtonPrivate;