TextEditor: make TextEditorWidget constructor explicit

Change-Id: I0b2e5b8c09706697efa4c2fbc3bc7483d02f68d3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
David Schulz
2020-09-02 14:31:30 +02:00
parent dba4bff703
commit b55a313b3d

View File

@@ -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<TextDocument> &doc);