summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/calendarwidget/window.cpp
diff options
context:
space:
mode:
authorVitaly Fanaskov <vitaly.fanaskov@qt.io>2020-02-05 16:09:21 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2020-02-19 11:32:40 +0000
commit3703a28511bed9daea2af57409db150cb3ed1a23 (patch)
tree50dbb5505425029a546abd9117d5a26916c7be16 /examples/widgets/widgets/calendarwidget/window.cpp
parent181bece09afef4e6c3b47e1d246eb7e3ba56d84f (diff)
QComboBox: remove currentIndexChanged(const QString&)
Fixes: QTBUG-81913 Task-number: QTBUG-81845 Change-Id: I8f24b858ce4e35b495440001d7734cc8f169cd5f Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/widgets/widgets/calendarwidget/window.cpp')
-rw-r--r--examples/widgets/widgets/calendarwidget/window.cpp20
1 files changed, 10 insertions, 10 deletions
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<int>::of(&QComboBox::currentIndexChanged),
+ connect(localeCombo, &QComboBox::currentIndexChanged,
this, &Window::localeChanged);
- connect(firstDayCombo, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(firstDayCombo, &QComboBox::currentIndexChanged,
this, &Window::firstDayChanged);
- connect(selectionModeCombo, QOverload<int>::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<int>::of(&QComboBox::currentIndexChanged),
+ connect(horizontalHeaderCombo, &QComboBox::currentIndexChanged,
this, &Window::horizontalHeaderChanged);
- connect(verticalHeaderCombo, QOverload<int>::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<int>::of(&QComboBox::currentIndexChanged),
+ connect(weekdayColorCombo, &QComboBox::currentIndexChanged,
this, &Window::weekdayFormatChanged);
- connect(weekdayColorCombo, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(weekdayColorCombo, &QComboBox::currentIndexChanged,
this, &Window::reformatCalendarPage);
- connect(weekendColorCombo, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(weekendColorCombo, &QComboBox::currentIndexChanged,
this, &Window::weekendFormatChanged);
- connect(weekendColorCombo, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(weekendColorCombo, &QComboBox::currentIndexChanged,
this, &Window::reformatCalendarPage);
- connect(headerTextFormatCombo, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(headerTextFormatCombo, &QComboBox::currentIndexChanged,
this, &Window::reformatHeaders);
connect(firstFridayCheckBox, &QCheckBox::toggled,
this, &Window::reformatCalendarPage);