forked from qt-creator/qt-creator
Replace static_casts by QOverload where possible
Mainly to get rid of the QProcess::finished deprecation warning. Also adjust coding style in the surrounding connects when needed. Change-Id: I12f9b248c7974b892c4a069356e578e80f8c59e9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -449,8 +449,8 @@ void ReadOnlyFilesDialogPrivate::initDialog(const QStringList &fileNames)
|
||||
groupForFile.fileName = fileName;
|
||||
groupForFile.group = radioButtonGroup;
|
||||
buttonGroups.append(groupForFile);
|
||||
QObject::connect(radioButtonGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked),
|
||||
[this](int) { updateSelectAll(); });
|
||||
QObject::connect(radioButtonGroup, QOverload<int>::of(&QButtonGroup::buttonClicked),
|
||||
[this] { updateSelectAll(); });
|
||||
}
|
||||
|
||||
// Apply the Mac file dialog style.
|
||||
@@ -508,7 +508,7 @@ void ReadOnlyFilesDialogPrivate::initDialog(const QStringList &fileNames)
|
||||
ui.setAll->addItem(saveAsText);
|
||||
setAllIndexForOperation[SaveAs] = ui.setAll->count() - 1;
|
||||
}
|
||||
QObject::connect(ui.setAll, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated),
|
||||
QObject::connect(ui.setAll, QOverload<int>::of(&QComboBox::activated),
|
||||
[this](int index) { setAll(index); });
|
||||
|
||||
// Filter which columns should be visible and resize them to content.
|
||||
|
||||
Reference in New Issue
Block a user