diff options
Diffstat (limited to 'src/widgets/qtoolbutton.cpp')
-rw-r--r-- | src/widgets/qtoolbutton.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/widgets/qtoolbutton.cpp b/src/widgets/qtoolbutton.cpp index aa4ae4c1f..74f3f4ade 100644 --- a/src/widgets/qtoolbutton.cpp +++ b/src/widgets/qtoolbutton.cpp @@ -40,7 +40,7 @@ #undef TQT_NO_COMPAT #include "ntqtoolbutton.h" -#ifndef QT_NO_TOOLBUTTON +#ifndef TQT_NO_TOOLBUTTON #include "ntqdrawutil.h" #include "ntqpainter.h" @@ -61,7 +61,7 @@ class TQToolButtonPrivate { // ### add tool tip magic here public: -#ifndef QT_NO_POPUPMENU +#ifndef TQT_NO_POPUPMENU TQGuardedPtr<TQPopupMenu> popup; TQTimer* popupTimer; int delay; @@ -143,7 +143,7 @@ TQToolButton::TQToolButton( TQWidget * parent, const char *name ) : TQButton( parent, name ) { init(); -#ifndef QT_NO_TOOLBAR +#ifndef TQT_NO_TOOLBAR TQToolBar* tb = ::tqt_cast<TQToolBar*>(parent); if ( tb ) { setAutoRaise( TRUE ); @@ -192,7 +192,7 @@ void TQToolButton::init() { d = new TQToolButtonPrivate; d->textPos = Under; -#ifndef QT_NO_POPUPMENU +#ifndef TQT_NO_POPUPMENU d->delay = 600; d->popup = 0; d->popupTimer = 0; @@ -215,7 +215,7 @@ void TQToolButton::init() setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); } -#ifndef QT_NO_TOOLBAR +#ifndef TQT_NO_TOOLBAR /*! Constructs a tool button called \a name, that is a child of \a @@ -249,7 +249,7 @@ TQToolButton::TQToolButton( const TQIconSet& iconSet, const TQString &textLabel, } else { setUsesBigPixmap( FALSE ); } -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP if ( !textLabel.isEmpty() ) { if ( !grouptext.isEmpty() && parent->mainWindow() ) TQToolTip::add( this, textLabel, @@ -271,7 +271,7 @@ TQToolButton::TQToolButton( const TQIconSet& iconSet, const TQString &textLabel, TQToolButton::~TQToolButton() { -#ifndef QT_NO_POPUPMENU +#ifndef TQT_NO_POPUPMENU d->popupTimer = 0; d->popup = 0; #endif @@ -352,7 +352,7 @@ TQSize TQToolButton::sizeHint() const } } -#ifndef QT_NO_POPUPMENU +#ifndef TQT_NO_POPUPMENU if ( popup() && ! popupDelay() ) w += style().pixelMetric(TQStyle::PM_MenuButtonIndicator, this); #endif @@ -467,7 +467,7 @@ void TQToolButton::drawButton( TQPainter * p ) if (isDown()) active |= TQStyle::SC_ToolButton; -#ifndef QT_NO_POPUPMENU +#ifndef TQT_NO_POPUPMENU if (d->popup && !d->delay) { controls |= TQStyle::SC_ToolButtonMenu; if (d->instantPopup || isDown()) @@ -585,7 +585,7 @@ void TQToolButton::mousePressEvent( TQMouseEvent *e ) TQStyle::SC_ToolButtonMenu), this ); d->instantPopup = (popupr.isValid() && popupr.contains(e->pos())); -#ifndef QT_NO_POPUPMENU +#ifndef TQT_NO_POPUPMENU if ( d->discardNextMouseEvent ) { d->discardNextMouseEvent = FALSE; d->instantPopup = FALSE; @@ -607,7 +607,7 @@ void TQToolButton::mousePressEvent( TQMouseEvent *e ) */ bool TQToolButton::eventFilter( TQObject *o, TQEvent *e ) { -#ifndef QT_NO_POPUPMENU +#ifndef TQT_NO_POPUPMENU if ( o != d->popup ) return TQButton::eventFilter( o, e ); switch ( e->type() ) { @@ -638,7 +638,7 @@ bool TQToolButton::uses3D() const { return style().styleHint(TQStyle::SH_ToolButton_Uses3D) && (!autoRaise() || ( hasMouse() && isEnabled() ) -#ifndef QT_NO_POPUPMENU +#ifndef TQT_NO_POPUPMENU || ( d->popup && d->popup->isVisible() && d->delay <= 0 ) || d->instantPopup #endif ); @@ -670,7 +670,7 @@ void TQToolButton::setTextLabel( const TQString &newLabel , bool tipToo ) if ( tl == newLabel ) return; -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP if ( tipToo ) { TQToolTip::remove( this ); TQToolTip::add( this, newLabel ); @@ -836,7 +836,7 @@ TQIconSet TQToolButton::iconSet( bool /* on */ ) const #endif -#ifndef QT_NO_POPUPMENU +#ifndef TQT_NO_POPUPMENU /*! Associates the popup menu \a popup with this tool button. @@ -911,7 +911,7 @@ void TQToolButton::popupTimerDone() d->repeat = autoRepeat(); setAutoRepeat( FALSE ); bool horizontal = TRUE; -#ifndef QT_NO_TOOLBAR +#ifndef TQT_NO_TOOLBAR TQToolBar *tb = ::tqt_cast<TQToolBar*>(parentWidget()); if ( tb && tb->orientation() == Vertical ) horizontal = FALSE; @@ -1029,7 +1029,7 @@ void TQToolButton::setText( const TQString &txt ) } } -#ifndef QT_NO_PALETTE +#ifndef TQT_NO_PALETTE /*! \reimp */ |