diff options
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqtoolbutton.cpp')
-rw-r--r-- | tqtinterface/qt4/src/widgets/tqtoolbutton.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp b/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp index 8c84a59..9f392ca 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp +++ b/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp @@ -135,16 +135,16 @@ public: /*! - Constructs an empty tool button called \a name, with tqparent \a - tqparent. + Constructs an empty tool button called \a name, with parent \a + parent. */ -TQToolButton::TQToolButton( TQWidget * tqparent, const char *name ) - : TQButton( tqparent, name ) +TQToolButton::TQToolButton( TQWidget * parent, const char *name ) + : TQButton( parent, name ) { init(); #ifndef TQT_NO_TOOLBAR - TQToolBar* tb = ::tqqt_cast<TQToolBar*>(tqparent); + TQToolBar* tb = ::tqqt_cast<TQToolBar*>(parent); if ( tb ) { setAutoRaise( TRUE ); if ( tb->mainWindow() ) { @@ -172,11 +172,11 @@ TQToolButton::TQToolButton( TQWidget * tqparent, const char *name ) An arrow button has auto-repeat turned on by default. - The \a tqparent and \a name arguments are sent to the TQWidget + The \a parent and \a name arguments are sent to the TQWidget constructor. */ -TQToolButton::TQToolButton( TQt::ArrowType type, TQWidget *tqparent, const char *name ) - : TQButton( tqparent, name ) +TQToolButton::TQToolButton( TQt::ArrowType type, TQWidget *parent, const char *name ) + : TQButton( parent, name ) { init(); setUsesBigPixmap( FALSE ); @@ -219,7 +219,7 @@ void TQToolButton::init() /*! Constructs a tool button called \a name, that is a child of \a - tqparent (which must be a TQToolBar). + parent (which must be a TQToolBar). The tool button will display \a iconSet, with its text label and tool tip set to \a textLabel and its status bar message set to \a @@ -230,8 +230,8 @@ void TQToolButton::init() TQToolButton::TQToolButton( const TQIconSet& iconSet, const TQString &textLabel, const TQString& grouptext, TQT_BASE_OBJECT_NAME * receiver, const char *slot, - TQToolBar * tqparent, const char *name ) - : TQButton( tqparent, name ) + TQToolBar * parent, const char *name ) + : TQButton( parent, name ) { init(); setAutoRaise( TRUE ); @@ -239,26 +239,26 @@ TQToolButton::TQToolButton( const TQIconSet& iconSet, const TQString &textLabel, setTextLabel( textLabel ); if ( receiver && slot ) connect( this, TQT_SIGNAL(clicked()), receiver, slot ); - if ( tqparent->mainWindow() ) { - connect( tqparent->mainWindow(), TQT_SIGNAL(pixmapSizeChanged(bool)), + if ( parent->mainWindow() ) { + connect( parent->mainWindow(), TQT_SIGNAL(pixmapSizeChanged(bool)), this, TQT_SLOT(setUsesBigPixmap(bool)) ); - setUsesBigPixmap( tqparent->mainWindow()->usesBigPixmaps() ); - connect( tqparent->mainWindow(), TQT_SIGNAL(usesTextLabelChanged(bool)), + setUsesBigPixmap( parent->mainWindow()->usesBigPixmaps() ); + connect( parent->mainWindow(), TQT_SIGNAL(usesTextLabelChanged(bool)), this, TQT_SLOT(setUsesTextLabel(bool)) ); - setUsesTextLabel( tqparent->mainWindow()->usesTextLabel() ); + setUsesTextLabel( parent->mainWindow()->usesTextLabel() ); } else { setUsesBigPixmap( FALSE ); } #ifndef TQT_NO_TOOLTIP if ( !textLabel.isEmpty() ) { - if ( !grouptext.isEmpty() && tqparent->mainWindow() ) + if ( !grouptext.isEmpty() && parent->mainWindow() ) TQToolTip::add( this, textLabel, - tqparent->mainWindow()->toolTipGroup(), grouptext ); + parent->mainWindow()->toolTipGroup(), grouptext ); else TQToolTip::add( this, textLabel ); - } else if ( !grouptext.isEmpty() && tqparent->mainWindow() ) + } else if ( !grouptext.isEmpty() && parent->mainWindow() ) TQToolTip::add( this, TQString::null, - tqparent->mainWindow()->toolTipGroup(), grouptext ); + parent->mainWindow()->toolTipGroup(), grouptext ); #endif } |