diff options
author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-11-20 11:23:30 +0100 |
---|---|---|
committer | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-12-04 11:42:22 +0000 |
commit | e57c1268ee302bd78059a13a046eade9d896c61e (patch) | |
tree | 4bf29d520d9647e028169279f957efa233ca0a95 /src/plugins/texteditor/icodestylepreferencesfactory.h | |
parent | 18669c82152585f44c80408be97947554cd1509d (diff) | |
download | qt-creator-e57c1268ee302bd78059a13a046eade9d896c61e.tar.gz |
ClangFormat: Move settings to the Code Style widget
It makes sense to unify the indenter creation by replacing
the CppCodeStylePreferencesFactory instead of removing it.
We are reusing the same options page but with different
kind of settings.
With this change wizards will no more be confused by missing
factory and will create the proper indenter.
Fixes: QTCREATORBUG-21516
Change-Id: I38964d5fa1f2257617c66a1441db723d239a3237
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/texteditor/icodestylepreferencesfactory.h')
-rw-r--r-- | src/plugins/texteditor/icodestylepreferencesfactory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/texteditor/icodestylepreferencesfactory.h b/src/plugins/texteditor/icodestylepreferencesfactory.h index 8fbc49e036..43cc6edffd 100644 --- a/src/plugins/texteditor/icodestylepreferencesfactory.h +++ b/src/plugins/texteditor/icodestylepreferencesfactory.h @@ -42,6 +42,8 @@ class TEXTEDITOR_EXPORT ICodeStylePreferencesFactory : public QObject public: explicit ICodeStylePreferencesFactory(QObject *parent = nullptr); + virtual QWidget *createCodeStyleEditor(ICodeStylePreferences *codeStyle, + QWidget *parent = nullptr); virtual Core::Id languageId() = 0; virtual QString displayName() = 0; virtual ICodeStylePreferences *createCodeStyle() const = 0; |