From 77ead0ba5f91ad6fd04fca1ab1e2b6847bf88136 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 7 Aug 2010 19:25:16 +0000 Subject: Yet more Qt4 API extensions... git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1160323 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qtinterface/tqpixmap.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qtinterface/tqpixmap.cpp') 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(this); +} + const QBitmap *QPixmap::ptrmask() const { QBitmap pm = mask(); QBitmap *pr = ± -- cgit v1.2.1