diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-07-20 07:56:59 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-07-20 10:31:30 +0000 |
commit | f078319febd01ad25806d21fea5ca06569bc628e (patch) | |
tree | accc061e442c14f6ad03669366010a2588627484 /src/libs/modelinglib | |
parent | a98b185e90557bd12ec43f4268ff3943bf4c1b61 (diff) |
Drop Qt5: ModelingLib: Get rid of QOverload
Change-Id: If7b6c4daf3c092eb844eb279049cac2f510dbc47
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/libs/modelinglib')
-rw-r--r-- | src/libs/modelinglib/qmt/model_widgets_ui/propertiesviewmview.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/modelinglib/qmt/model_widgets_ui/propertiesviewmview.cpp b/src/libs/modelinglib/qmt/model_widgets_ui/propertiesviewmview.cpp index 199422cb31..8792318285 100644 --- a/src/libs/modelinglib/qmt/model_widgets_ui/propertiesviewmview.cpp +++ b/src/libs/modelinglib/qmt/model_widgets_ui/propertiesviewmview.cpp @@ -580,7 +580,7 @@ void PropertiesView::MView::visitMDependency(const MDependency *dependency) m_directionSelector = new QComboBox(m_topWidget); m_directionSelector->addItems(QStringList({ "->", "<-", "<->" })); addRow(tr("Direction:"), m_directionSelector, "direction"); - connect(m_directionSelector, QOverload<int>::of(&QComboBox::activated), + connect(m_directionSelector, &QComboBox::activated, this, &PropertiesView::MView::onDependencyDirectionChanged); } if (isSingleSelection) { @@ -664,7 +664,7 @@ void PropertiesView::MView::visitMAssociation(const MAssociation *association) m_endAKind = new QComboBox(m_topWidget); m_endAKind->addItems({ tr("Association"), tr("Aggregation"), tr("Composition") }); addRow(tr("Relationship:"), m_endAKind, "relationship a"); - connect(m_endAKind, QOverload<int>::of(&QComboBox::activated), + connect(m_endAKind, &QComboBox::activated, this, &PropertiesView::MView::onAssociationEndAKindChanged); } if (isSingleSelection) { @@ -729,7 +729,7 @@ void PropertiesView::MView::visitMAssociation(const MAssociation *association) m_endBKind = new QComboBox(m_topWidget); m_endBKind->addItems({ tr("Association"), tr("Aggregation"), tr("Composition") }); addRow(tr("Relationship:"), m_endBKind, "relationship b"); - connect(m_endBKind, QOverload<int>::of(&QComboBox::activated), + connect(m_endBKind, &QComboBox::activated, this, &PropertiesView::MView::onAssociationEndBKindChanged); } if (isSingleSelection) { @@ -930,7 +930,7 @@ void PropertiesView::MView::visitDObject(const DObject *object) m_visualSecondaryRoleSelector->addItems({ tr("Normal"), tr("Lighter"), tr("Darker"), tr("Soften"), tr("Outline"), tr("Flat") }); addRow(tr("Role:"), m_visualSecondaryRoleSelector, "role"); - connect(m_visualSecondaryRoleSelector, QOverload<int>::of(&QComboBox::activated), + connect(m_visualSecondaryRoleSelector, &QComboBox::activated, this, &PropertiesView::MView::onVisualSecondaryRoleChanged); } if (!m_visualSecondaryRoleSelector->hasFocus()) { @@ -958,7 +958,7 @@ void PropertiesView::MView::visitDObject(const DObject *object) m_stereotypeDisplaySelector->addItems({ tr("Smart"), tr("None"), tr("Label"), tr("Decoration"), tr("Icon") }); addRow(tr("Stereotype display:"), m_stereotypeDisplaySelector, "stereotype display"); - connect(m_stereotypeDisplaySelector, QOverload<int>::of(&QComboBox::activated), + connect(m_stereotypeDisplaySelector, &QComboBox::activated, this, &PropertiesView::MView::onStereotypeDisplayChanged); } if (!m_stereotypeDisplaySelector->hasFocus()) { @@ -995,7 +995,7 @@ void PropertiesView::MView::visitDClass(const DClass *klass) m_templateDisplaySelector = new QComboBox(m_topWidget); m_templateDisplaySelector->addItems({ tr("Smart"), tr("Box"), tr("Angle Brackets") }); addRow(tr("Template display:"), m_templateDisplaySelector, "template display"); - connect(m_templateDisplaySelector, QOverload<int>::of(&QComboBox::activated), + connect(m_templateDisplaySelector, &QComboBox::activated, this, &PropertiesView::MView::onTemplateDisplayChanged); } if (!m_templateDisplaySelector->hasFocus()) { @@ -1141,7 +1141,7 @@ void PropertiesView::MView::visitDAnnotation(const DAnnotation *annotation) tr("Subtitle"), tr("Emphasized"), tr("Soften"), tr("Footnote") })); addRow(tr("Role:"), m_annotationVisualRoleSelector, "visual role"); - connect(m_annotationVisualRoleSelector, QOverload<int>::of(&QComboBox::activated), + connect(m_annotationVisualRoleSelector, &QComboBox::activated, this, &PropertiesView::MView::onAnnotationVisualRoleChanged); } if (!m_annotationVisualRoleSelector->hasFocus()) { |