forked from qt-creator/qt-creator
CppEditor: Remove two unused signals
Change-Id: Id521d92c0c4ae5c8d9aedd4177a8df444c3cb85d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -472,7 +472,6 @@ void CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged()
|
|||||||
current->setCodeStyleSettings(cppCodeStyleSettings());
|
current->setCodeStyleSettings(cppCodeStyleSettings());
|
||||||
}
|
}
|
||||||
|
|
||||||
emit codeStyleSettingsChanged(cppCodeStyleSettings());
|
|
||||||
updatePreview();
|
updatePreview();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -487,7 +486,6 @@ void CppCodeStylePreferencesWidget::slotTabSettingsChanged(const TabSettings &se
|
|||||||
current->setTabSettings(settings);
|
current->setTabSettings(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
emit tabSettingsChanged(settings);
|
|
||||||
updatePreview();
|
updatePreview();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -19,15 +19,14 @@ namespace TextEditor {
|
|||||||
class CodeStyleEditorWidget;
|
class CodeStyleEditorWidget;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace CppEditor {
|
namespace CppEditor::Internal {
|
||||||
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class CppCodeStylePreferencesWidgetPrivate;
|
class CppCodeStylePreferencesWidgetPrivate;
|
||||||
|
|
||||||
class CppCodeStylePreferencesWidget : public TextEditor::CodeStyleEditorWidget
|
class CppCodeStylePreferencesWidget : public TextEditor::CodeStyleEditorWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CppCodeStylePreferencesWidget(QWidget *parent = nullptr);
|
explicit CppCodeStylePreferencesWidget(QWidget *parent = nullptr);
|
||||||
~CppCodeStylePreferencesWidget() override;
|
~CppCodeStylePreferencesWidget() override;
|
||||||
@@ -37,6 +36,10 @@ public:
|
|||||||
void apply() override;
|
void apply() override;
|
||||||
void finish() override;
|
void finish() override;
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void applyEmitted();
|
||||||
|
void finishEmitted();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void decorateEditors(const TextEditor::FontSettings &fontSettings);
|
void decorateEditors(const TextEditor::FontSettings &fontSettings);
|
||||||
void setVisualizeWhitespace(bool on);
|
void setVisualizeWhitespace(bool on);
|
||||||
@@ -56,14 +59,8 @@ private:
|
|||||||
TextEditor::TabSettings m_originalTabSettings;
|
TextEditor::TabSettings m_originalTabSettings;
|
||||||
bool m_blockUpdates = false;
|
bool m_blockUpdates = false;
|
||||||
friend class CppCodeStylePreferencesWidgetPrivate;
|
friend class CppCodeStylePreferencesWidgetPrivate;
|
||||||
signals:
|
|
||||||
void codeStyleSettingsChanged(const CppEditor::CppCodeStyleSettings &);
|
|
||||||
void tabSettingsChanged(const TextEditor::TabSettings &);
|
|
||||||
void applyEmitted();
|
|
||||||
void finishEmitted();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void setupCppCodeStyleSettings();
|
void setupCppCodeStyleSettings();
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace CppEditor::Internal
|
||||||
} // namespace CppEditor
|
|
||||||
|
Reference in New Issue
Block a user