summaryrefslogtreecommitdiffstats
path: root/src/widgets/qtabbar.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /src/widgets/qtabbar.cpp
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz
tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 )