summaryrefslogtreecommitdiffstats
path: root/src/widgets/qtabbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/qtabbar.cpp')
-rw-r--r--src/widgets/qtabbar.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/widgets/qtabbar.cpp b/src/widgets/qtabbar.cpp
index db08012c4..08e5f24f4 100644
--- a/src/widgets/qtabbar.cpp
+++ b/src/widgets/qtabbar.cpp
@@ -37,7 +37,7 @@
**********************************************************************/
#include "ntqtabbar.h"
-#ifndef QT_NO_TABBAR
+#ifndef TQT_NO_TABBAR
#include "ntqaccel.h"
#include "ntqbitmap.h"
#include "ntqtoolbutton.h"
@@ -237,7 +237,7 @@ class TQTabBarToolTip;
struct TQTabPrivate {
int id;
int focus;
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
TQAccel * a;
#endif
TQTab *pressed;
@@ -249,7 +249,7 @@ struct TQTabPrivate {
TQTabBarToolTip * toolTips;
};
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
/* \internal
*/
class TQTabBarToolTip : public TQToolTip
@@ -296,7 +296,7 @@ protected:
if ( tb->d->scrolls && (rectL.contains( p ) || rectR.contains( p )) )
return;
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
// find and show the tool tip for the tab under the point p
TQMapIterator<TQTab *, TQString> it;
for ( it = tabTips.begin(); it != tabTips.end(); ++it ) {
@@ -342,7 +342,7 @@ TQTabBar::TQTabBar( TQWidget * parent, const char *name )
d->id = 0;
d->focus = 0;
d->toolTips = 0;
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
d->a = new TQAccel( this, "tab accelerators" );
connect( d->a, SIGNAL(activated(int)), this, SLOT(setCurrentTab(int)) );
connect( d->a, SIGNAL(activatedAmbiguously(int)), this, SLOT(setCurrentTab(int)) );
@@ -370,7 +370,7 @@ TQTabBar::TQTabBar( TQWidget * parent, const char *name )
TQTabBar::~TQTabBar()
{
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
if ( d->toolTips )
delete d->toolTips;
#endif
@@ -434,7 +434,7 @@ int TQTabBar::insertTab( TQTab * newTab, int index )
updateArrowButtons();
makeVisible( tab( currentTab() ) );
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
int p = TQAccel::shortcutKey( newTab->label );
if ( p )
d->a->insertItem( p, newTab->id );
@@ -450,11 +450,11 @@ int TQTabBar::insertTab( TQTab * newTab, int index )
void TQTabBar::removeTab( TQTab * t )
{
//#### accelerator labels??
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
if ( d->toolTips )
d->toolTips->remove( t );
#endif
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
if ( d->a )
d->a->removeItem( t->id );
#endif
@@ -492,7 +492,7 @@ void TQTabBar::setTabEnabled( int id, bool enabled )
if ( t && t->id == id ) {
if ( t->enabled != enabled ) {
t->enabled = enabled;
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
d->a->setItemEnabled( t->id, enabled );
#endif
TQRect r( t->r );
@@ -1334,7 +1334,7 @@ void TQTabBar::updateArrowButtons()
*/
void TQTabBar::removeToolTip( int index )
{
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
TQTab * tab = tabAt( index );
if ( !tab || !d->toolTips )
return;
@@ -1348,7 +1348,7 @@ void TQTabBar::removeToolTip( int index )
*/
void TQTabBar::setToolTip( int index, const TQString & tip )
{
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
TQTab * tab = tabAt( index );
if ( !tab )
return;
@@ -1363,7 +1363,7 @@ void TQTabBar::setToolTip( int index, const TQString & tip )
*/
TQString TQTabBar::toolTip( int index ) const
{
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
if ( d->toolTips )
return d->toolTips->tipForTab( tabAt( index ) );
else
@@ -1378,7 +1378,7 @@ void TQTab::setText( const TQString& text )
{
label = text;
if ( tb ) {
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
tb->d->a->removeItem( id );
int p = TQAccel::shortcutKey( text );
if ( p )