forked from qt-creator/qt-creator
TextEditor: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I380120e3419d2a3c0e272f51cc3e0d5f6aaa5e9b Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
b6131e1b1d
commit
9d3b2f0998
@@ -185,9 +185,12 @@ void CodeStylePool::addCodeStyle(ICodeStylePreferences *codeStyle)
|
||||
// take ownership
|
||||
codeStyle->setParent(this);
|
||||
|
||||
connect(codeStyle, SIGNAL(valueChanged(QVariant)), this, SLOT(slotSaveCodeStyle()));
|
||||
connect(codeStyle, SIGNAL(tabSettingsChanged(TextEditor::TabSettings)), this, SLOT(slotSaveCodeStyle()));
|
||||
connect(codeStyle, SIGNAL(displayNameChanged(QString)), this, SLOT(slotSaveCodeStyle()));
|
||||
connect(codeStyle, &ICodeStylePreferences::valueChanged,
|
||||
this, &CodeStylePool::slotSaveCodeStyle);
|
||||
connect(codeStyle, &ICodeStylePreferences::tabSettingsChanged,
|
||||
this, &CodeStylePool::slotSaveCodeStyle);
|
||||
connect(codeStyle, &ICodeStylePreferences::displayNameChanged,
|
||||
this, &CodeStylePool::slotSaveCodeStyle);
|
||||
emit codeStyleAdded(codeStyle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user