forked from qt-creator/qt-creator
ProjectExplorer: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I619db09a79760186b72e7662490ed1205155c1a7 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
db8b9f9463
commit
15f8bb07ed
@@ -76,8 +76,8 @@ public:
|
||||
|
||||
fontSettingsChanged();
|
||||
|
||||
connect(TextEditor::TextEditorSettings::instance(), SIGNAL(fontSettingsChanged(TextEditor::FontSettings)),
|
||||
this, SLOT(fontSettingsChanged()));
|
||||
connect(TextEditor::TextEditorSettings::instance(), &TextEditor::TextEditorSettings::fontSettingsChanged,
|
||||
this, &CompileOutputTextEdit::fontSettingsChanged);
|
||||
|
||||
connect(Core::ICore::instance(), &Core::ICore::saveSettingsRequested,
|
||||
this, &CompileOutputTextEdit::saveSettings);
|
||||
@@ -100,7 +100,7 @@ public:
|
||||
{
|
||||
m_taskids.clear();
|
||||
}
|
||||
private slots:
|
||||
private:
|
||||
void fontSettingsChanged()
|
||||
{
|
||||
setBaseFont(TextEditor::TextEditorSettings::fontSettings().font());
|
||||
@@ -190,8 +190,8 @@ CompileOutputWindow::CompileOutputWindow(QAction *cancelBuildAction) :
|
||||
|
||||
m_handler = new ShowOutputTaskHandler(this);
|
||||
ExtensionSystem::PluginManager::addObject(m_handler);
|
||||
connect(ProjectExplorerPlugin::instance(), SIGNAL(settingsChanged()),
|
||||
this, SLOT(updateWordWrapMode()));
|
||||
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::settingsChanged,
|
||||
this, &CompileOutputWindow::updateWordWrapMode);
|
||||
updateWordWrapMode();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user