def METHOD_NAME(self):
    self._slider.setOrientation(QtCore.Qt.Horizontal)
    self._slider.setTickPosition(QtWidgets.QSlider.TicksBelow)
    self._slider.setSizePolicy(QtWidgets.QSizePolicy.Expanding,
                               QtWidgets.QSizePolicy.Preferred)
    self._spinbox.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
    layout = QtWidgets.QHBoxLayout(self)
    layout.setContentsMargins(0, 0, 0, 0)
    layout.addWidget(self._spinbox)
    layout.addWidget(self._slider)
    # store the original press event.
    self._slider_mouse_press_event = self._slider.mousePressEvent
    self._slider.mousePressEvent = self._on_slider_mouse_press
    self._slider.mouseReleaseEvent = self._on_slider_mouse_release
    if self._disable_scroll:
        self._slider.wheelEvent = lambda _: None
        self._spinbox.wheelEvent = lambda _: None