diff options
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqbutton.cpp')
-rw-r--r-- | tqtinterface/qt4/src/widgets/tqbutton.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqbutton.cpp b/tqtinterface/qt4/src/widgets/tqbutton.cpp index e9f8d10..a94d0cb 100644 --- a/tqtinterface/qt4/src/widgets/tqbutton.cpp +++ b/tqtinterface/qt4/src/widgets/tqbutton.cpp @@ -315,9 +315,9 @@ TQTimer *TQButton::timer() \brief the pixmap shown on the button If the pixmap is monochrome (i.e. it is a TQBitmap or its \link - TQPixmap::depth() depth\endlink is 1) and it does not have a tqmask, - this property will set the pixmap to be its own tqmask. The purpose - of this is to draw transtqparent bitmaps which are important for + TQPixmap::depth() depth\endlink is 1) and it does not have a mask, + this property will set the pixmap to be its own mask. The purpose + of this is to draw transparent bitmaps which are important for toggle buttons, for example. pixmap() returns 0 if no pixmap was set. @@ -371,15 +371,15 @@ TQTimer *TQButton::timer() */ /*! - Constructs a standard button called \a name with tqparent \a tqparent, + Constructs a standard button called \a name with parent \a parent, using the widget flags \a f. - If \a tqparent is a TQButtonGroup, this constructor calls + If \a parent is a TQButtonGroup, this constructor calls TQButtonGroup::insert(). */ -TQButton::TQButton( TQWidget *tqparent, const char *name, WFlags f ) - : TQWidget( tqparent, name, f ) +TQButton::TQButton( TQWidget *parent, const char *name, WFlags f ) + : TQWidget( parent, name, f ) { bpixmap = 0; toggleTyp = SingleShot; // button is simple @@ -391,8 +391,8 @@ TQButton::TQButton( TQWidget *tqparent, const char *name, WFlags f ) repeat = FALSE; // not in autorepeat mode d = 0; #ifndef TQT_NO_BUTTONGROUP - if ( ::tqqt_cast<TQButtonGroup*>(tqparent) ) { - setGroup((TQButtonGroup*)tqparent); + if ( ::tqqt_cast<TQButtonGroup*>(parent) ) { + setGroup((TQButtonGroup*)parent); group()->insert( this ); // insert into button group } #endif @@ -512,7 +512,7 @@ void TQButton::setPixmap( const TQPixmap &pixmap ) bpixmap = new TQPixmap( pixmap ); TQ_CHECK_PTR( bpixmap ); } - if ( bpixmap->depth() == 1 && !bpixmap->tqmask() ) + if ( bpixmap->depth() == 1 && !bpixmap->mask() ) bpixmap->setMask( *((TQBitmap *)bpixmap) ); if ( !btext.isNull() ) { btext = TQString::null; |