Lines 1773-1779
void QCleanlooksStyle::drawControl(ControlElement element, const QStyleOption *o
Link Here
|
1773 |
} |
1773 |
} |
1774 |
} else { |
1774 |
} else { |
1775 |
Q_D(const QCleanlooksStyle); |
1775 |
Q_D(const QCleanlooksStyle); |
1776 |
int slideWidth = ((rect.width() - 4) * 2) / 3; |
1776 |
int slideWidth = (qMax(rect.width() - 4, minWidth) * 2) / 3; |
1777 |
int step = ((d->animateStep * slideWidth) / d->animationFps) % slideWidth; |
1777 |
int step = ((d->animateStep * slideWidth) / d->animationFps) % slideWidth; |
1778 |
if ((((d->animateStep * slideWidth) / d->animationFps) % (2 * slideWidth)) >= slideWidth) |
1778 |
if ((((d->animateStep * slideWidth) / d->animationFps) % (2 * slideWidth)) >= slideWidth) |
1779 |
step = slideWidth - step; |
1779 |
step = slideWidth - step; |
1780 |
- |
|
|