forked from qt-creator/qt-creator
Indenters: Move style setup into the QtStyleCodeFormatter constructors.
This makes sure styles are consistent for the editor and the quick fix engine.
This commit is contained in:
@@ -35,12 +35,17 @@
|
||||
#include <texteditor/basetextdocumentlayout.h>
|
||||
#include <qmljs/qmljscodeformatter.h>
|
||||
|
||||
namespace TextEditor {
|
||||
class TabSettings;
|
||||
}
|
||||
|
||||
namespace QmlJSEditor {
|
||||
|
||||
class QMLJSEDITOR_EXPORT QtStyleCodeFormatter : public QmlJS::CodeFormatter
|
||||
{
|
||||
public:
|
||||
QtStyleCodeFormatter();
|
||||
explicit QtStyleCodeFormatter(const TextEditor::TabSettings &tabSettings);
|
||||
|
||||
void setIndentSize(int size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user