From cb58b7ee4e27b43022bcb70c22f8892b1dd27caf Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 19 Jan 2016 09:09:13 +0000 Subject: [PATCH] Workout Editor QT4 doesn't like Q_DECL_OVERRIDE .. so removed from codeeditor.h *sigh* --- qtsolutions/codeeditor/codeeditor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qtsolutions/codeeditor/codeeditor.h b/qtsolutions/codeeditor/codeeditor.h index cac3361d0..e42b2dd5f 100644 --- a/qtsolutions/codeeditor/codeeditor.h +++ b/qtsolutions/codeeditor/codeeditor.h @@ -65,7 +65,7 @@ public: void setColors(QColor bg, QColor fg) { lineAreaColor = bg; lineAreaText = fg; } protected: - void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; + void resizeEvent(QResizeEvent *event); private slots: void updateLineNumberAreaWidth(int newBlockCount); @@ -85,12 +85,12 @@ public: codeEditor = editor; } - QSize sizeHint() const Q_DECL_OVERRIDE { + QSize sizeHint() const { return QSize(codeEditor->lineNumberAreaWidth(), 0); } protected: - void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE { + void paintEvent(QPaintEvent *event) { codeEditor->lineNumberAreaPaintEvent(event); }