From d0852f90a24673ccc9ef0b93e224ba37b674644d Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 20 Apr 2020 16:18:59 +0200 Subject: Fix building dev with newer QtBase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0d52e4f6684425cb15319760e0001bdb13846997 Reviewed-by: Jüri Valdmann --- examples/pdfwidgets/pdfviewer/zoomselector.cpp | 6 +++--- examples/pdfwidgets/pdfviewer/zoomselector.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/pdfwidgets') diff --git a/examples/pdfwidgets/pdfviewer/zoomselector.cpp b/examples/pdfwidgets/pdfviewer/zoomselector.cpp index 0205489aa..e38140e67 100644 --- a/examples/pdfwidgets/pdfviewer/zoomselector.cpp +++ b/examples/pdfwidgets/pdfviewer/zoomselector.cpp @@ -57,11 +57,11 @@ ZoomSelector::ZoomSelector(QWidget *parent) addItem(QLatin1String("200%")); addItem(QLatin1String("400%")); - connect(this, static_cast(&QComboBox::currentIndexChanged), + connect(this, &QComboBox::currentIndexChanged, this, &ZoomSelector::onCurrentTextChanged); connect(lineEdit(), &QLineEdit::editingFinished, - this, [this](){onCurrentTextChanged(lineEdit()->text()); }); + this, [this](){onCurrentTextChanged(0, lineEdit()->text()); }); } void ZoomSelector::setZoomFactor(qreal zoomFactor) @@ -74,7 +74,7 @@ void ZoomSelector::reset() setCurrentIndex(8); // 100% } -void ZoomSelector::onCurrentTextChanged(const QString &text) +void ZoomSelector::onCurrentTextChanged(int, const QString &text) { if (text == QLatin1String("Fit Width")) { emit zoomModeChanged(QPdfView::FitToWidth); diff --git a/examples/pdfwidgets/pdfviewer/zoomselector.h b/examples/pdfwidgets/pdfviewer/zoomselector.h index c58d09970..0f27bafb4 100644 --- a/examples/pdfwidgets/pdfviewer/zoomselector.h +++ b/examples/pdfwidgets/pdfviewer/zoomselector.h @@ -57,7 +57,7 @@ signals: void zoomFactorChanged(qreal zoomFactor); private slots: - void onCurrentTextChanged(const QString &text); + void onCurrentTextChanged(int, const QString &text); }; #endif // ZOOMSELECTOR_H -- cgit v1.2.3