summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization
diff options
context:
space:
mode:
Diffstat (limited to 'examples/datavisualization')
-rw-r--r--examples/datavisualization/bars/main.cpp20
-rw-r--r--examples/datavisualization/custominput/main.cpp4
-rw-r--r--examples/datavisualization/scatter/main.cpp12
-rw-r--r--examples/datavisualization/surface/main.cpp4
4 files changed, 20 insertions, 20 deletions
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);
diff --git a/examples/datavisualization/custominput/main.cpp b/examples/datavisualization/custominput/main.cpp
index 62bf1d8c..43472730 100644
--- a/examples/datavisualization/custominput/main.cpp
+++ b/examples/datavisualization/custominput/main.cpp
@@ -65,8 +65,8 @@ int main(int argc, char **argv)
QObject::connect(cameraButton, &QPushButton::clicked, modifier,
&ScatterDataModifier::toggleCameraAnimation);
- QObject::connect(shadowQuality, SIGNAL(currentIndexChanged(int)), modifier,
- SLOT(changeShadowQuality(int)));
+ QObject::connect(shadowQuality, &QComboBox::currentIndexChanged, modifier,
+ &ScatterDataModifier::changeShadowQuality);
QObject::connect(modifier, &ScatterDataModifier::shadowQualityChanged, shadowQuality,
&QComboBox::setCurrentIndex);
diff --git a/examples/datavisualization/scatter/main.cpp b/examples/datavisualization/scatter/main.cpp
index 79154d64..73f412f5 100644
--- a/examples/datavisualization/scatter/main.cpp
+++ b/examples/datavisualization/scatter/main.cpp
@@ -142,14 +142,14 @@ int main(int argc, char **argv)
backgroundCheckBox, &QCheckBox::setChecked);
QObject::connect(modifier, &ScatterDataModifier::gridEnabledChanged,
gridCheckBox, &QCheckBox::setChecked);
- QObject::connect(itemStyleList, SIGNAL(currentIndexChanged(int)), modifier,
- SLOT(changeStyle(int)));
+ QObject::connect(itemStyleList, &QComboBox::currentIndexChanged, modifier,
+ qOverload<int>(&ScatterDataModifier::changeStyle));
- QObject::connect(themeList, SIGNAL(currentIndexChanged(int)), modifier,
- SLOT(changeTheme(int)));
+ QObject::connect(themeList, &QComboBox::currentIndexChanged, modifier,
+ qOverload<int>(&ScatterDataModifier::changeTheme));
- QObject::connect(shadowQuality, SIGNAL(currentIndexChanged(int)), modifier,
- SLOT(changeShadowQuality(int)));
+ QObject::connect(shadowQuality, &QComboBox::currentIndexChanged, modifier,
+ qOverload<int>(&ScatterDataModifier::changeShadowQuality));
QObject::connect(modifier, &ScatterDataModifier::shadowQualityChanged, shadowQuality,
&QComboBox::setCurrentIndex);
diff --git a/examples/datavisualization/surface/main.cpp b/examples/datavisualization/surface/main.cpp
index 2b1ccf63..e017b039 100644
--- a/examples/datavisualization/surface/main.cpp
+++ b/examples/datavisualization/surface/main.cpp
@@ -185,8 +185,8 @@ int main(int argc, char **argv)
modifier, &SurfaceGraph::adjustZMin);
QObject::connect(axisMaxSliderZ, &QSlider::valueChanged,
modifier, &SurfaceGraph::adjustZMax);
- QObject::connect(themeList, SIGNAL(currentIndexChanged(int)),
- modifier, SLOT(changeTheme(int)));
+ QObject::connect(themeList, &QComboBox::currentIndexChanged,
+ modifier, &SurfaceGraph::changeTheme);
QObject::connect(gradientBtoYPB, &QPushButton::pressed,
modifier, &SurfaceGraph::setBlackToYellowGradient);
QObject::connect(gradientGtoRPB, &QPushButton::pressed,