Commit bb3c2466 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add parent

parent 13be8b45
Pipeline #135323 passed with stage
in 2 minutes and 16 seconds
......@@ -80,13 +80,13 @@ ZoomWidget::ZoomWidget(QWidget *parent)
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
d->mZoomSlider = new ZoomSlider;
d->mZoomSlider = new ZoomSlider(this);
d->mZoomSlider->setMinimumWidth(150);
d->mZoomSlider->slider()->setSingleStep(int(PRECISION));
d->mZoomSlider->slider()->setPageStep(3 * int(PRECISION));
connect(d->mZoomSlider->slider(), &QAbstractSlider::actionTriggered, this, &ZoomWidget::slotZoomSliderActionTriggered);
d->mZoomComboBox = new ZoomComboBox;
d->mZoomComboBox = new ZoomComboBox(this);
connect(d->mZoomComboBox, &ZoomComboBox::zoomChanged, this, &ZoomWidget::zoomChanged);
// Layout
......
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