i am going to commit the attached since bitBlt() is depreciated in qt4...
http://doc.trolltech.com/4.1/qimage-qt3.html#bitBlt
Index: BulletsModule.C
===================================================================
--- BulletsModule.C (revision 14688)
+++ BulletsModule.C (working copy)
@@ -16,6 +16,7 @@
#include "support/filetools.h"
#include <QPixmap>
+#include <QPainter>
#include <boost/assert.hpp>
@@ -86,7 +87,8 @@
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));
}
}
Index: qsetborder.C
===================================================================
--- qsetborder.C (revision 14688)
+++ qsetborder.C (working copy)
@@ -41,7 +41,8 @@
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);
}