From 3703a28511bed9daea2af57409db150cb3ed1a23 Mon Sep 17 00:00:00 2001 From: Vitaly Fanaskov Date: Wed, 5 Feb 2020 16:09:21 +0100 Subject: QComboBox: remove currentIndexChanged(const QString&) Fixes: QTBUG-81913 Task-number: QTBUG-81845 Change-Id: I8f24b858ce4e35b495440001d7734cc8f169cd5f Reviewed-by: Shawn Rutledge --- examples/widgets/widgets/calendarwidget/window.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'examples/widgets/widgets/calendarwidget/window.cpp') diff --git a/examples/widgets/widgets/calendarwidget/window.cpp b/examples/widgets/widgets/calendarwidget/window.cpp index ae10223dd4..23010a6e1a 100644 --- a/examples/widgets/widgets/calendarwidget/window.cpp +++ b/examples/widgets/widgets/calendarwidget/window.cpp @@ -313,19 +313,19 @@ void Window::createGeneralOptionsGroupBox() verticalHeaderLabel->setBuddy(verticalHeaderCombo); //! [11] - connect(localeCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(localeCombo, &QComboBox::currentIndexChanged, this, &Window::localeChanged); - connect(firstDayCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(firstDayCombo, &QComboBox::currentIndexChanged, this, &Window::firstDayChanged); - connect(selectionModeCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(selectionModeCombo, &QComboBox::currentIndexChanged, this, &Window::selectionModeChanged); connect(gridCheckBox, &QCheckBox::toggled, calendar, &QCalendarWidget::setGridVisible); connect(navigationCheckBox, &QCheckBox::toggled, calendar, &QCalendarWidget::setNavigationBarVisible); - connect(horizontalHeaderCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(horizontalHeaderCombo, &QComboBox::currentIndexChanged, this, &Window::horizontalHeaderChanged); - connect(verticalHeaderCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(verticalHeaderCombo, &QComboBox::currentIndexChanged, this, &Window::verticalHeaderChanged); //! [11] @@ -446,15 +446,15 @@ void Window::createTextFormatsGroupBox() mayFirstCheckBox = new QCheckBox(tr("May &1 in red")); //! [17] //! [18] - connect(weekdayColorCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(weekdayColorCombo, &QComboBox::currentIndexChanged, this, &Window::weekdayFormatChanged); - connect(weekdayColorCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(weekdayColorCombo, &QComboBox::currentIndexChanged, this, &Window::reformatCalendarPage); - connect(weekendColorCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(weekendColorCombo, &QComboBox::currentIndexChanged, this, &Window::weekendFormatChanged); - connect(weekendColorCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(weekendColorCombo, &QComboBox::currentIndexChanged, this, &Window::reformatCalendarPage); - connect(headerTextFormatCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(headerTextFormatCombo, &QComboBox::currentIndexChanged, this, &Window::reformatHeaders); connect(firstFridayCheckBox, &QCheckBox::toggled, this, &Window::reformatCalendarPage); -- cgit v1.2.3