Commit 0d44e1d1 authored by Farid Abdelnour's avatar Farid Abdelnour 🎥

Fix inverted zoom in/out button.

parent df24c235
Pipeline #715 passed with stage
in 20 minutes and 30 seconds
......@@ -651,12 +651,12 @@ Bin::Bin(const std::shared_ptr<ProjectItemModel> &model, QWidget *parent)
QToolButton *tb1 = new QToolButton(this);
tb1->setIcon(QIcon::fromTheme(QStringLiteral("zoom-in")));
connect(tb1, &QToolButton::clicked, [&] () {
m_slider->setValue(qMin(m_slider->value() + 1, m_slider->maximum()));
m_slider->setValue(qMin(m_slider->value() - 1, m_slider->maximum()));
});
QToolButton *tb2 = new QToolButton(this);
tb2->setIcon(QIcon::fromTheme(QStringLiteral("zoom-out")));
connect(tb2, &QToolButton::clicked, [&] () {
m_slider->setValue(qMax(m_slider->value() - 1, m_slider->minimum()));
m_slider->setValue(qMax(m_slider->value() + 1, m_slider->minimum()));
});
lay->addWidget(tb1);
lay->addWidget(m_slider);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment