modernize: use override
This commit is contained in:
parent
7dab4d39ee
commit
2b531227a8
10 changed files with 13 additions and 37 deletions
|
|
@ -22,7 +22,7 @@ public:
|
|||
const QString &room_id);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *);
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
|
||||
private:
|
||||
QString dateFormat(const QDateTime &then) const;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ signals:
|
|||
void clicked();
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *event)
|
||||
bool eventFilter(QObject *obj, QEvent *event) override
|
||||
{
|
||||
if (event->type() == QEvent::MouseButtonRelease) {
|
||||
emit clicked();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue