diff options
Diffstat (limited to 'tqtinterface/qt4/src/kernel/tqcursor.cpp')
-rw-r--r-- | tqtinterface/qt4/src/kernel/tqcursor.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqcursor.cpp b/tqtinterface/qt4/src/kernel/tqcursor.cpp index 16e74cf..3be2c23 100644 --- a/tqtinterface/qt4/src/kernel/tqcursor.cpp +++ b/tqtinterface/qt4/src/kernel/tqcursor.cpp @@ -64,7 +64,7 @@ of the mouse cursor. TQt has a number of standard cursor tqshapes, but you can also make - custom cursor tqshapes based on a TQBitmap, a tqmask and a hotspot. + custom cursor tqshapes based on a TQBitmap, a mask and a hotspot. To associate a cursor with a widget, use TQWidget::setCursor(). To associate a cursor with all widgets (normally for a short period @@ -75,7 +75,7 @@ of the predefined cursors defined in the \l tqCursorShape enum. If you want to create a cursor with your own bitmap, either use - the TQCursor constructor which takes a bitmap and a tqmask or the + the TQCursor constructor which takes a bitmap and a mask or the constructor which takes a pixmap as arguments. To set or get the position of the mouse cursor use the static @@ -165,7 +165,7 @@ TQDataStream &operator<<( TQDataStream &s, const TQCursor &c ) s << (TQ_INT16)c.tqshape(); // write tqshape id to stream if ( c.tqshape() == TQt::BitmapCursor ) { // bitmap cursor #if !defined(TQT_NO_IMAGEIO) - s << *c.bitmap() << *c.tqmask(); + s << *c.bitmap() << *c.mask(); s << c.hotSpot(); #else qWarning("No Image Cursor I/O"); @@ -205,7 +205,7 @@ TQDataStream &operator>>( TQDataStream &s, TQCursor &c ) /*! Constructs a custom pixmap cursor. - \a pixmap is the image. It is usual to give it a tqmask (set using + \a pixmap is the image. It is usual to give it a mask (set using TQPixmap::setMask()). \a hotX and \a hotY define the cursor's hot spot. @@ -229,13 +229,13 @@ TQCursor::TQCursor( const TQPixmap &pixmap, int hotX, int hotY ) TQBitmap bm; bm.convertFromImage( img, TQt::ThresholdDither|TQt::AvoidDither ); TQBitmap bmm; - if ( bm.tqmask() ) { - bmm = *bm.tqmask(); + if ( bm.mask() ) { + bmm = *bm.mask(); TQBitmap nullBm; bm.setMask( nullBm ); } - else if ( pixmap.tqmask() ) { - TQImage mimg = pixmap.tqmask()->convertToImage(). + else if ( pixmap.mask() ) { + TQImage mimg = pixmap.mask()->convertToImage(). convertDepth( 8, TQt::ThresholdDither|TQt::AvoidDither ); bmm.convertFromImage( mimg, TQt::ThresholdDither|TQt::AvoidDither ); } @@ -253,18 +253,18 @@ TQCursor::TQCursor( const TQPixmap &pixmap, int hotX, int hotY ) Constructs a custom bitmap cursor. \a bitmap and - \a tqmask make up the bitmap. + \a mask make up the bitmap. \a hotX and \a hotY define the cursor's hot spot. If \a hotX is negative, it is set to the \c{bitmap().width()/2}. If \a hotY is negative, it is set to the \c{bitmap().height()/2}. - The cursor \a bitmap (B) and \a tqmask (M) bits are combined like this: + The cursor \a bitmap (B) and \a mask (M) bits are combined like this: \list \i B=1 and M=1 gives black. \i B=0 and M=1 gives white. - \i B=0 and M=0 gives transtqparent. + \i B=0 and M=0 gives transparent. \i B=1 and M=0 gives an undefined result. \endlist @@ -279,10 +279,10 @@ TQCursor::TQCursor( const TQPixmap &pixmap, int hotX, int hotY ) \sa TQBitmap::TQBitmap(), TQBitmap::setMask() */ -TQCursor::TQCursor( const TQBitmap &bitmap, const TQBitmap &tqmask, +TQCursor::TQCursor( const TQBitmap &bitmap, const TQBitmap &mask, int hotX, int hotY ) { - setBitmap(bitmap,tqmask,hotX,hotY); + setBitmap(bitmap,mask,hotX,hotY); } #endif // USE_QT4 |