54 QRect
rect = geometry();
58 if (
d->orientation == Orientation::Horizontal) {
59 painter.fillRect(
rect.marginsAdded(QMargins(-3, 4, 1, 4)),
61 offset = QPoint(3, 0);
63 painter.fillRect(
rect.marginsAdded(QMargins(4, -3, 4, 1)),
65 offset = QPoint(0, 3);
71#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
72 d->handle_icon.paint(&painter, QRect(QPoint(
rect.topLeft() + offset), QSize(
d->size,
d->size)));
75 QRect
target = QRect(QPoint(0, 0), ic.deviceIndependentSize().toSize());
77 painter.drawImage(
target, ic);