summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqpixmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqpixmap.cpp')
-rw-r--r--qtinterface/tqpixmap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qtinterface/tqpixmap.cpp b/qtinterface/tqpixmap.cpp
index 1140a39..7e26883 100644
--- a/qtinterface/tqpixmap.cpp
+++ b/qtinterface/tqpixmap.cpp
@@ -53,6 +53,10 @@ QPixmap::QPixmap( int w, int h, int depth, Optimization optim ) {
QPixmap(w, h);
}
+QPixmap::operator QPixmap *() const {
+ return const_cast<QPixmap *>(this);
+}
+
const QBitmap *QPixmap::ptrmask() const {
QBitmap pm = mask();
QBitmap *pr = &pm;