Fixed scrolling in Textbar

This commit is contained in:
Thomas Frauendorfer 2008-05-12 15:45:31 +02:00
parent 5c2b669285
commit c30d2c2285

View file

@ -230,12 +230,12 @@ TextScroller::paintEvent (QPaintEvent *event)
QPainter (paint);
paint.begin (this);
paint.drawPixmap (QRect (m_x2_off, 0, m_w - pad, m_h),
m_pixmap,
QRect (m_x_off, 0, m_w, m_h));
m_pixmap,
QRect (m_x_off, 0, m_w - pad, m_h));
if (pad) {
paint.drawPixmap (QRect (m_w - pad, 0, pad, m_h),
m_pixmap,
QRect (0, 0, pad, m_h));
m_pixmap,
QRect (0, 0, pad, m_h));
}
paint.end ();
}