summaryrefslogtreecommitdiffstats
path: root/src/widgets/qaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/qaction.cpp')
-rw-r--r--src/widgets/qaction.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/widgets/qaction.cpp b/src/widgets/qaction.cpp
index 242de2dd8..62661018e 100644
--- a/src/widgets/qaction.cpp
+++ b/src/widgets/qaction.cpp
@@ -38,7 +38,7 @@
#include "ntqaction.h"
-#ifndef QT_NO_ACTION
+#ifndef TQT_NO_ACTION
#include "ntqtoolbar.h"
#include "ntqptrlist.h"
@@ -134,7 +134,7 @@ public:
TQString tooltip;
TQString statustip;
TQString whatsthis;
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
TQKeySequence key;
TQAccel* accel;
int accelid;
@@ -145,7 +145,7 @@ public:
uint on : 1;
uint forceDisabled : 1;
uint forceInvisible : 1;
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
TQToolTipGroup tipGroup;
#endif
TQActionGroupPrivate* d_group;
@@ -178,19 +178,19 @@ public:
TQActionPrivate::TQActionPrivate(TQAction *act)
: iconset( 0 ),
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
key( 0 ), accel( 0 ), accelid( 0 ),
#endif
enabled( TRUE ), visible( TRUE ), toggleaction( FALSE ), on( FALSE ),
forceDisabled( FALSE ), forceInvisible( FALSE ),
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
tipGroup( 0 ),
#endif
d_group( 0 ), action(act)
{
menuitems.setAutoDelete( TRUE );
comboitems.setAutoDelete( TRUE );
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
tipGroup.setDelay( FALSE );
#endif
}
@@ -241,7 +241,7 @@ TQActionPrivate::~TQActionPrivate()
delete siblings;
}
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
delete accel;
#endif
delete iconset;
@@ -275,7 +275,7 @@ void TQActionPrivate::update( uint upd )
for ( TQPtrListIterator<MenuItem> it( menuitems); it.current(); ++it ) {
MenuItem* mi = it.current();
TQString t = menuText();
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
if ( key )
t += '\t' + TQAccel::keyToString( key );
#endif
@@ -322,18 +322,18 @@ void TQActionPrivate::update( uint upd )
btn->setToggleButton( toggleaction );
if ( !text.isEmpty() )
btn->setTextLabel( text, FALSE );
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
TQToolTip::remove( btn );
TQToolTip::add( btn, toolTip(), &tipGroup, statusTip() );
#endif
-#ifndef QT_NO_WHATSTHIS
+#ifndef TQT_NO_WHATSTHIS
TQWhatsThis::remove( btn );
if ( !whatsthis.isEmpty() )
TQWhatsThis::add( btn, whatsthis );
#endif
}
}
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
if ( accel ) {
accel->setEnabled( enabled && visible );
if ( !whatsthis.isEmpty() )
@@ -365,7 +365,7 @@ TQString TQActionPrivate::menuText() const
TQString TQActionPrivate::toolTip() const
{
if ( tooltip.isNull() ) {
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
if ( accel )
return text + " (" + TQAccel::keyToString( accel->key( accelid )) + ")";
#endif
@@ -431,7 +431,7 @@ TQAction::TQAction( TQObject* parent, const char* name, bool toggle )
}
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
/*!
This constructor creates an action with the following properties:
@@ -748,7 +748,7 @@ TQString TQAction::whatsThis() const
}
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
/*!
\property TQAction::accel
\brief the action's accelerator key
@@ -1008,7 +1008,7 @@ void TQAction::toolButtonToggled( bool on )
*/
bool TQAction::addTo( TQWidget* w )
{
-#ifndef QT_NO_TOOLBAR
+#ifndef TQT_NO_TOOLBAR
if ( ::tqt_cast<TQToolBar*>(w) ) {
if ( !qstrcmp( name(), "qt_separator_action" ) ) {
((TQToolBar*)w)->addSeparator();
@@ -1024,7 +1024,7 @@ bool TQAction::addTo( TQWidget* w )
connect( btn, SIGNAL( clicked() ), this, SIGNAL( activated() ) );
connect( btn, SIGNAL( toggled(bool) ), this, SLOT( toolButtonToggled(bool) ) );
connect( btn, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
connect( &(d->tipGroup), SIGNAL(showTip(const TQString&)), this, SLOT(showStatusText(const TQString&)) );
connect( &(d->tipGroup), SIGNAL(removeTip()), this, SLOT(clearStatusText()) );
#endif
@@ -1104,7 +1104,7 @@ void TQAction::addedTo( int index, TQPopupMenu *menu )
*/
void TQAction::showStatusText( const TQString& text )
{
-#ifndef QT_NO_STATUSBAR
+#ifndef TQT_NO_STATUSBAR
// find out whether we are clearing the status bar by the popup that actually set the text
static TQPopupMenu *lastmenu = 0;
TQObject *s = (TQObject*)sender();
@@ -1188,7 +1188,7 @@ void TQAction::clearStatusText()
*/
bool TQAction::removeFrom( TQWidget* w )
{
-#ifndef QT_NO_TOOLBAR
+#ifndef TQT_NO_TOOLBAR
if ( ::tqt_cast<TQToolBar*>(w) ) {
TQPtrListIterator<TQToolButton> it( d->toolbuttons);
TQToolButton* btn;
@@ -1313,12 +1313,12 @@ void TQActionGroupPrivate::update( const TQActionGroup* that )
combobox->setEnabled( that->isEnabled() );
combobox->setShown( that->isVisible() );
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
TQToolTip::remove( combobox );
if ( !!that->toolTip() )
TQToolTip::add( combobox, that->toolTip() );
#endif
-#ifndef QT_NO_WHATSTHIS
+#ifndef TQT_NO_WHATSTHIS
TQWhatsThis::remove( combobox );
if ( !!that->whatsThis() )
TQWhatsThis::add( combobox, that->whatsThis() );
@@ -1335,12 +1335,12 @@ void TQActionGroupPrivate::update( const TQActionGroup* that )
if ( !that->iconSet().isNull() )
button->setIconSet( that->iconSet() );
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
TQToolTip::remove( mb.current() );
if ( !!that->toolTip() )
TQToolTip::add( button, that->toolTip() );
#endif
-#ifndef QT_NO_WHATSTHIS
+#ifndef TQT_NO_WHATSTHIS
TQWhatsThis::remove( button );
if ( !!that->whatsThis() )
TQWhatsThis::add( button, that->whatsThis() );
@@ -1370,7 +1370,7 @@ void TQActionGroupPrivate::update( const TQActionGroup* that )
else
parent->changeItem( id, that->menuText() );
parent->setItemEnabled( id, that->isEnabled() );
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
parent->setAccel( that->accel(), id );
#endif
}
@@ -1654,7 +1654,7 @@ void TQActionGroup::addSeparator()
*/
bool TQActionGroup::addTo( TQWidget* w )
{
-#ifndef QT_NO_TOOLBAR
+#ifndef TQT_NO_TOOLBAR
if ( ::tqt_cast<TQToolBar*>(w) ) {
if ( d->dropdown ) {
if ( !d->exclusive ) {
@@ -1677,13 +1677,13 @@ bool TQActionGroup::addTo( TQWidget* w )
btn->setTextLabel( text() );
else if ( !!defAction->text() )
btn->setTextLabel( defAction->text() );
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
if ( !!toolTip() )
TQToolTip::add( btn, toolTip() );
else if ( !!defAction->toolTip() )
TQToolTip::add( btn, defAction->toolTip() );
#endif
-#ifndef QT_NO_WHATSTHIS
+#ifndef TQT_NO_WHATSTHIS
if ( !!whatsThis() )
TQWhatsThis::add( btn, whatsThis() );
else if ( !!defAction->whatsThis() )
@@ -1709,11 +1709,11 @@ bool TQActionGroup::addTo( TQWidget* w )
addedTo( box, w );
connect( box, SIGNAL(destroyed()), SLOT(objectDestroyed()) );
d->comboboxes.append( box );
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
if ( !!toolTip() )
TQToolTip::add( box, toolTip() );
#endif
-#ifndef QT_NO_WHATSTHIS
+#ifndef TQT_NO_WHATSTHIS
if ( !!whatsThis() )
TQWhatsThis::add( box, whatsThis() );
#endif
@@ -1791,7 +1791,7 @@ bool TQActionGroup::removeFrom( TQWidget* w )
it.current()->removeFrom( w );
}
-#ifndef QT_NO_TOOLBAR
+#ifndef TQT_NO_TOOLBAR
if ( ::tqt_cast<TQToolBar*>(w) ) {
TQPtrListIterator<TQComboBox> cb( d->comboboxes );
while( cb.current() ) {