#include "support/filetools.h"
#include <QPixmap>
+#include <QPainter>
#include <boost/assert.hpp>
for (int col = 0; col < 6; ++col) {
QPixmap small(w,h);
small.fill();
- bitBlt(&small, 0, 0, &pixmap, col * w, row * h, w, h);
+ QPainter painter(&small);
+ painter.drawPixmap(small.rect(), pixmap, QRect(col * w, row * h, w, h));
new QListWidgetItem(QIcon(small), "" , lw, (6*row + col));
}
}
void QSetBorder::paintEvent(QPaintEvent * e)
{
QWidget::paintEvent(e);
- bitBlt(this, 0, 0, &buffer, 0, 0, width(), height());
+ QPainter painter(this);
+ painter.drawPixmap(0, 0, buffer);
}