diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2019-05-27 10:24:56 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2019-07-04 08:18:30 +0000 |
commit | 25f9d9c43481b0a02d632bf609417c4302fe1fe1 (patch) | |
tree | 66aefe98333c7958b78b906493bfac49abf90c3a /src/libs | |
parent | 4b92b7ac60586f034fd4117de90f61cd196e8976 (diff) |
Use QComboBox::currentTextChanged instead of currentIndexChanged
QComboBox::currentIndexChanged is depcrecated as of Qt 5.13 and
QComboBox::currentTextChanged is available since Qt 4.1
Change-Id: I97b8eb37765cbb7556cfbde87ea90f91f63bfa63
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/qmleditorwidgets/contextpanetextwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmleditorwidgets/contextpanetextwidget.cpp b/src/libs/qmleditorwidgets/contextpanetextwidget.cpp index 70b6c700db..6a37637a6a 100644 --- a/src/libs/qmleditorwidgets/contextpanetextwidget.cpp +++ b/src/libs/qmleditorwidgets/contextpanetextwidget.cpp @@ -103,7 +103,7 @@ ContextPaneTextWidget::ContextPaneTextWidget(QWidget *parent) : connect(ui->bottomAlignmentButton, &QToolButton::toggled, this, &ContextPaneTextWidget::onVerticalAlignmentChanged); - connect(ui->styleComboBox, QOverload<const QString &>::of(&QComboBox::currentIndexChanged), + connect(ui->styleComboBox, &QComboBox::currentTextChanged, this, &ContextPaneTextWidget::onStyleComboBoxChanged); } |