Commit 055bc236 authored by Kevin Funk's avatar Kevin Funk
Browse files

Minor: s/Q_DECL_OVERRIDE/override/

parent 98b60902
Pipeline #93588 failed with stage
in 1 minute and 46 seconds
......@@ -54,13 +54,13 @@ class Canvas : public QGraphicsView
void getY(double& value);
protected:
void resizeEvent(QResizeEvent* event) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent* event) override;
private:
void initValues();
QColor rgbDoublesToColor(double r, double g, double b);
void drawLine(double x1, double y1, double x2, double y2);
void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;
void wheelEvent(QWheelEvent *event) override;
void scaleView(double scaleFactor);
QGraphicsScene *_scene;
......
......@@ -28,7 +28,7 @@ class ColorPatch : public QFrame
void setColor(const QColor &c) { col = c; }
protected:
void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE {
void paintEvent(QPaintEvent *e) override {
QPainter p(this);
drawFrame(&p);
p.fillRect(contentsRect()&e->rect(), col);
......
......@@ -35,9 +35,9 @@ class DirectionCanvas : public QWidget
void previousDegreeChanged(double deg);
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
private:
double translateMouseCoords(double x, double y);
......
......@@ -45,7 +45,7 @@ class LineNumbers : public QWidget
public:
LineNumbers(QWidget *parent, QTextEdit *te) : QWidget(parent), editor(te), maxWidth(0) {}
~LineNumbers() Q_DECL_OVERRIDE {}
~LineNumbers() override {}
void setFont(const QFont& f) { QWidget::setFont(f); }
......@@ -57,7 +57,7 @@ class LineNumbers : public QWidget
setFixedWidth(fontMetrics().boundingRect(s).width() + 2*LINENUMBER_SPACING);
}
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE {
void paintEvent(QPaintEvent*) override {
QAbstractTextDocumentLayout* layout = editor->document()->documentLayout();
int contentsY = editor->verticalScrollBar()->value();
qreal pageBottom = contentsY + editor->viewport()->height();
......@@ -130,7 +130,7 @@ class TextEdit : public QTextEdit
}
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE {
void paintEvent(QPaintEvent *event) override {
QPainter painter(viewport());
painter.fillRect(currentLineRect(), QBrush(LINE_HIGHLIGHT_COLOR));
if (!currentWord.isNull()) {
......@@ -260,7 +260,7 @@ class Editor : public QFrame
// void cursorPositionChanged();
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *event) override;
private Q_SLOTS:
......
......@@ -31,7 +31,7 @@ class Highlighter : public QSyntaxHighlighter
QTextCharFormat* tokenToFormat(Token* token);
protected:
void highlightBlock(const QString &text) Q_DECL_OVERRIDE { checkOrApplyHighlighting(text); }
void highlightBlock(const QString &text) override { checkOrApplyHighlighting(text); }
private:
Token* checkOrApplyHighlighting(const QString &text, int cursorIndex = -1);
......
......@@ -30,7 +30,7 @@ class LocalDockWidget : public QDockWidget {
Q_OBJECT
public:
LocalDockWidget(const QString& title, QWidget* parent) : QDockWidget(parent) { setWindowTitle(title); }
void setVisible(bool b) Q_DECL_OVERRIDE { QDockWidget::setVisible(b); Q_EMIT visibilityChanged(b); }
void setVisible(bool b) override { QDockWidget::setVisible(b); Q_EMIT visibilityChanged(b); }
void show() { QDockWidget::show(); Q_EMIT visibilityChanged(true); }
void hide() { QDockWidget::hide(); Q_EMIT visibilityChanged(false); }
Q_SIGNALS:
......@@ -94,10 +94,10 @@ class MainWindow : public KXmlGuiWindow
void updateOnCursorPositionChange();
protected Q_SLOTS:
void saveNewToolbarConfig() Q_DECL_OVERRIDE;
void saveNewToolbarConfig() override;
protected:
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
void closeEvent(QCloseEvent *event) override;
private:
void setupActions();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment