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());
|
||||
}
|
||||
|
||||
emit codeStyleSettingsChanged(cppCodeStyleSettings());
|
||||
updatePreview();
|
||||
}
|
||||
|
||||
@@ -487,7 +486,6 @@ void CppCodeStylePreferencesWidget::slotTabSettingsChanged(const TabSettings &se
|
||||
current->setTabSettings(settings);
|
||||
}
|
||||
|
||||
emit tabSettingsChanged(settings);
|
||||
updatePreview();
|
||||
}
|
||||
|
||||
|
@@ -19,15 +19,14 @@ namespace TextEditor {
|
||||
class CodeStyleEditorWidget;
|
||||
}
|
||||
|
||||
namespace CppEditor {
|
||||
|
||||
namespace Internal {
|
||||
namespace CppEditor::Internal {
|
||||
|
||||
class CppCodeStylePreferencesWidgetPrivate;
|
||||
|
||||
class CppCodeStylePreferencesWidget : public TextEditor::CodeStyleEditorWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CppCodeStylePreferencesWidget(QWidget *parent = nullptr);
|
||||
~CppCodeStylePreferencesWidget() override;
|
||||
@@ -37,6 +36,10 @@ public:
|
||||
void apply() override;
|
||||
void finish() override;
|
||||
|
||||
signals:
|
||||
void applyEmitted();
|
||||
void finishEmitted();
|
||||
|
||||
private:
|
||||
void decorateEditors(const TextEditor::FontSettings &fontSettings);
|
||||
void setVisualizeWhitespace(bool on);
|
||||
@@ -56,14 +59,8 @@ private:
|
||||
TextEditor::TabSettings m_originalTabSettings;
|
||||
bool m_blockUpdates = false;
|
||||
friend class CppCodeStylePreferencesWidgetPrivate;
|
||||
signals:
|
||||
void codeStyleSettingsChanged(const CppEditor::CppCodeStyleSettings &);
|
||||
void tabSettingsChanged(const TextEditor::TabSettings &);
|
||||
void applyEmitted();
|
||||
void finishEmitted();
|
||||
};
|
||||
|
||||
void setupCppCodeStyleSettings();
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace CppEditor
|
||||
} // namespace CppEditor::Internal
|
||||
|
Reference in New Issue
Block a user