diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2019-05-27 23:28:48 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2019-05-28 14:07:03 +0000 |
commit | 0933c20de8547139a7da6c965f23633a30fbbe75 (patch) | |
tree | e47da78d29ff3715d4111fb46f321c4d7b3d5b14 /src/plugins/projectexplorer/jsonwizard | |
parent | 1b11c4d4b634ac954f99f9c3109a40b919528ee7 (diff) |
connect() to ambiguous signals/slots: Replace static_cast with QOverload
Change-Id: I473d7a2a16509cee944a2a21b022a3f6f02cfd8d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/jsonwizard')
-rw-r--r-- | src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp index b04ec95efc..835f3a0429 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp @@ -1007,7 +1007,7 @@ void ComboBoxField::setup(JsonFieldPage *page, const QString &name) // the selectionModel does not behave like expected and wanted - so we block signals here // (for example there was some losing focus thing when hovering over items, ...) selectionModel()->blockSignals(true); - QObject::connect(w, static_cast<void(QComboBox::*)(int)>(&QComboBox::activated), [w, this](int index) { + QObject::connect(w, QOverload<int>::of(&QComboBox::activated), [w, this](int index) { w->blockSignals(true); selectionModel()->clearSelection(); |