summaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-03-03 19:31:26 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-03-04 16:54:52 +0000
commitd8ac4b40b5acb5582b1491f48f3d3c2cfc044666 (patch)
tree2e0363bf395de47daa3c91b8402ff701c6822263 /examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp
parent332f295743019a5b70eb923d6ad93352b0cb4079 (diff)
Examples: replace deprecated QComboBox functions
Replace the deprecated currentIndexChanged(QString) and activated(QString) with the new currentTextChanged() and textActivated() functions Change-Id: I8616354fa06cc63dce6f5cfef0902f4b55981043 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp')
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp
index 0c831360cf..9fa24fcd17 100644
--- a/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp
+++ b/examples/widgets/graphicsview/embeddeddialogs/embeddeddialog.cpp
@@ -73,7 +73,7 @@ EmbeddedDialog::EmbeddedDialog(QWidget *parent)
this, &EmbeddedDialog::spacingChanged);
connect(ui->fontComboBox, &QFontComboBox::currentFontChanged,
this, &EmbeddedDialog::fontChanged);
- connect(ui->style, QOverload<const QString &>::of(&QComboBox::activated),
+ connect(ui->style, &QComboBox::textActivated,
this, &EmbeddedDialog::styleChanged);
}