Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 365139
Collapse All | Expand All

(-)a/kalarm/lib/spinbox2.cpp (-3 / +4 lines)
Lines 28-34 Link Here
28
#include <QMouseEvent>
28
#include <QMouseEvent>
29
#include <QStyleOptionSpinBox>
29
#include <QStyleOptionSpinBox>
30
#include <QGraphicsPixmapItem>
30
#include <QGraphicsPixmapItem>
31
#include <QPaintEngine>
31
#include <QPainter>
32
#include <QTimer>
32
#include <QTimer>
33
#include <QFrame>
33
#include <QFrame>
34
#include <QBrush>
34
#include <QBrush>
Lines 588-595 void SpinMirror::setFrame() Link Here
588
		p = grabWidget(mMainSpinbox, QRect(x, 0, 1, height()));
588
		p = grabWidget(mMainSpinbox, QRect(x, 0, 1, height()));
589
		// Blot out edit field stuff from the middle of the slice
589
		// Blot out edit field stuff from the middle of the slice
590
		QPixmap dot = grabWidget(mMainSpinbox, QRect(x, editOffsetY, 1, 1));
590
		QPixmap dot = grabWidget(mMainSpinbox, QRect(x, editOffsetY, 1, 1));
591
		QPaintEngine* pe = p.paintEngine();
591
		QPainter painter(&p);
592
		pe->drawTiledPixmap(QRectF(0, editOffsetY, 1, height() - 2*editOffsetY), dot, QPointF(0, 0));
592
		painter.drawTiledPixmap(0, editOffsetY, 1, height() - 2*editOffsetY, dot, 0, 0);
593
		painter.end();
593
		// Horizontally fill the mirror widget with the vertical slice
594
		// Horizontally fill the mirror widget with the vertical slice
594
		p = p.scaled(size());
595
		p = p.scaled(size());
595
		// Grab the left hand border of the main spinbox, and draw it into the mirror widget.
596
		// Grab the left hand border of the main spinbox, and draw it into the mirror widget.

Return to bug 365139