forked from qt-creator/qt-creator
CodeStyle: Remove edit pop-up
Removed the Edit pop-up on the CodeStyle page. Now editing is available immediately after opening CodeStyle tab. I left a preview on the project CodeStyle page and added a link to global settings. ToDo: In project CodeStyle page replace preview with CodeStyleEditor. I'm not 100% sure that it is needed. If you have some thoughts please write a comment. Change-Id: I31032a97b9668b4f6b06fc6c5c704700fb44ee4f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -37,8 +37,8 @@ namespace ClangFormat {
|
||||
class ClangFormatFile
|
||||
{
|
||||
public:
|
||||
explicit ClangFormatFile(Utils::FilePath file, bool isReadOnly);
|
||||
clang::format::FormatStyle format();
|
||||
explicit ClangFormatFile(Utils::FilePath file);
|
||||
clang::format::FormatStyle style();
|
||||
|
||||
Utils::FilePath filePath();
|
||||
void resetStyleToQtC();
|
||||
@@ -55,6 +55,7 @@ public:
|
||||
void fromCppCodeStyleSettings(const CppEditor::CppCodeStyleSettings &settings);
|
||||
void fromTabSettings(const TextEditor::TabSettings &settings);
|
||||
bool isReadOnly() const;
|
||||
void setIsReadOnly(bool isReadOnly);
|
||||
|
||||
private:
|
||||
void saveNewFormat();
|
||||
@@ -63,7 +64,7 @@ private:
|
||||
private:
|
||||
Utils::FilePath m_filePath;
|
||||
clang::format::FormatStyle m_style;
|
||||
const bool m_isReadOnly;
|
||||
bool m_isReadOnly;
|
||||
};
|
||||
|
||||
} // namespace ClangFormat
|
||||
|
||||
Reference in New Issue
Block a user