From ee13df3902a536c0ff4ebc0fa81a1a3f6b6ab4f4 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Thu, 24 Nov 2022 23:18:37 +0100 Subject: examples: port datavisualization examples to new connection style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: QTBUG-108847 Change-Id: Ia17be1799a63518746c687ec968c7f0f8694013e Reviewed-by: Jörg Bornemann --- examples/datavisualization/bars/main.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'examples/datavisualization/bars/main.cpp') diff --git a/examples/datavisualization/bars/main.cpp b/examples/datavisualization/bars/main.cpp index 34748782..9337ac85 100644 --- a/examples/datavisualization/bars/main.cpp +++ b/examples/datavisualization/bars/main.cpp @@ -268,20 +268,20 @@ int main(int argc, char **argv) QObject::connect(modifier, &GraphModifier::gridEnabledChanged, gridCheckBox, &QCheckBox::setChecked); - QObject::connect(rangeList, SIGNAL(currentIndexChanged(int)), modifier, - SLOT(changeRange(int))); + QObject::connect(rangeList, &QComboBox::currentIndexChanged, modifier, + &GraphModifier::changeRange); - QObject::connect(barStyleList, SIGNAL(currentIndexChanged(int)), modifier, - SLOT(changeStyle(int))); + QObject::connect(barStyleList, &QComboBox::currentIndexChanged, modifier, + &GraphModifier::changeStyle); - QObject::connect(selectionModeList, SIGNAL(currentIndexChanged(int)), modifier, - SLOT(changeSelectionMode(int))); + QObject::connect(selectionModeList, &QComboBox::currentIndexChanged, modifier, + &GraphModifier::changeSelectionMode); - QObject::connect(themeList, SIGNAL(currentIndexChanged(int)), modifier, - SLOT(changeTheme(int))); + QObject::connect(themeList, &QComboBox::currentIndexChanged, modifier, + &GraphModifier::changeTheme); - QObject::connect(shadowQuality, SIGNAL(currentIndexChanged(int)), modifier, - SLOT(changeShadowQuality(int))); + QObject::connect(shadowQuality, &QComboBox::currentIndexChanged, modifier, + &GraphModifier::changeShadowQuality); QObject::connect(modifier, &GraphModifier::shadowQualityChanged, shadowQuality, &QComboBox::setCurrentIndex); -- cgit v1.2.3