forked from qt-creator/qt-creator
Avoid a lot of updates when CppCodeStyleSettingsPage is created
This helps to reduce the lag when typing in the preference's filter edit. Task-number: QTCREATORBUG-5065 Change-Id: I26634a47b21df1402a53037864bb0c334eba8078 Reviewed-on: http://codereview.qt.nokia.com/572 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
This commit is contained in:
@@ -38,8 +38,7 @@ QWidget *CppCodeStylePreferencesFactory::createEditor(TextEditor::IFallbackPrefe
|
||||
return 0;
|
||||
Internal::CppCodeStylePreferencesWidget *widget = new Internal::CppCodeStylePreferencesWidget(parent);
|
||||
widget->layout()->setMargin(0);
|
||||
widget->setCppCodeStylePreferences(cppPreferences);
|
||||
widget->setTabPreferences(tabPreferences);
|
||||
widget->setPreferences(cppPreferences, tabPreferences);
|
||||
return widget;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user