diff --git a/src/plugins/texteditor/texteditor.h b/src/plugins/texteditor/texteditor.h index e00750f1042..05a0183e574 100644 --- a/src/plugins/texteditor/texteditor.h +++ b/src/plugins/texteditor/texteditor.h @@ -179,7 +179,7 @@ class TEXTEDITOR_EXPORT TextEditorWidget : public QPlainTextEdit Q_PROPERTY(int verticalBlockSelectionLastColumn READ verticalBlockSelectionLastColumn) public: - TextEditorWidget(QWidget *parent = nullptr); + explicit TextEditorWidget(QWidget *parent = nullptr); ~TextEditorWidget() override; void setTextDocument(const QSharedPointer &doc);