summaryrefslogtreecommitdiffstats
path: root/examples/pdfwidgets/pdfviewer/zoomselector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pdfwidgets/pdfviewer/zoomselector.cpp')
-rw-r--r--examples/pdfwidgets/pdfviewer/zoomselector.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pdfwidgets/pdfviewer/zoomselector.cpp b/examples/pdfwidgets/pdfviewer/zoomselector.cpp
index e38140e67..a4d596ab7 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, &QComboBox::currentIndexChanged,
+ connect(this, &QComboBox::currentTextChanged,
this, &ZoomSelector::onCurrentTextChanged);
connect(lineEdit(), &QLineEdit::editingFinished,
- this, [this](){onCurrentTextChanged(0, lineEdit()->text()); });
+ this, [this](){onCurrentTextChanged(lineEdit()->text()); });
}
void ZoomSelector::setZoomFactor(qreal zoomFactor)
@@ -74,7 +74,7 @@ void ZoomSelector::reset()
setCurrentIndex(8); // 100%
}
-void ZoomSelector::onCurrentTextChanged(int, const QString &text)
+void ZoomSelector::onCurrentTextChanged(const QString &text)
{
if (text == QLatin1String("Fit Width")) {
emit zoomModeChanged(QPdfView::FitToWidth);