summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/codeeditor/codeeditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/widgets/codeeditor/codeeditor.h')
-rw-r--r--examples/widgets/widgets/codeeditor/codeeditor.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/widgets/widgets/codeeditor/codeeditor.h b/examples/widgets/widgets/codeeditor/codeeditor.h
index 65be76d81d..5a48abafc4 100644
--- a/examples/widgets/widgets/codeeditor/codeeditor.h
+++ b/examples/widgets/widgets/codeeditor/codeeditor.h
@@ -52,7 +52,6 @@
#define CODEEDITOR_H
#include <QPlainTextEdit>
-#include <QObject>
QT_BEGIN_NAMESPACE
class QPaintEvent;
@@ -70,7 +69,7 @@ class CodeEditor : public QPlainTextEdit
Q_OBJECT
public:
- CodeEditor(QWidget *parent = 0);
+ CodeEditor(QWidget *parent = nullptr);
void lineNumberAreaPaintEvent(QPaintEvent *event);
int lineNumberAreaWidth();