summaryrefslogtreecommitdiffstats
path: root/src/widgets/qstatusbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/qstatusbar.cpp')
-rw-r--r--src/widgets/qstatusbar.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/widgets/qstatusbar.cpp b/src/widgets/qstatusbar.cpp
index 557d7ef71..d3d294d2e 100644
--- a/src/widgets/qstatusbar.cpp
+++ b/src/widgets/qstatusbar.cpp
@@ -39,7 +39,7 @@
**********************************************************************/
#include "ntqstatusbar.h"
-#ifndef QT_NO_STATUSBAR
+#ifndef TQT_NO_STATUSBAR
#include "ntqptrlist.h"
#include "ntqlayout.h"
@@ -127,7 +127,7 @@ public:
TQBoxLayout * box;
TQTimer * timer;
-#ifndef QT_NO_SIZEGRIP
+#ifndef TQT_NO_SIZEGRIP
TQSizeGrip * resizer;
#endif
@@ -149,7 +149,7 @@ TQStatusBar::TQStatusBar( TQWidget * parent, const char *name )
d->box = 0;
d->timer = 0;
-#ifndef QT_NO_SIZEGRIP
+#ifndef TQT_NO_SIZEGRIP
d->resizer = 0;
setSizeGripEnabled(TRUE); // causes reformat()
#else
@@ -260,7 +260,7 @@ void TQStatusBar::removeWidget( TQWidget* widget )
bool TQStatusBar::isSizeGripEnabled() const
{
-#ifdef QT_NO_SIZEGRIP
+#ifdef TQT_NO_SIZEGRIP
return FALSE;
#else
return !!d->resizer;
@@ -269,7 +269,7 @@ bool TQStatusBar::isSizeGripEnabled() const
void TQStatusBar::setSizeGripEnabled(bool enabled)
{
-#ifndef QT_NO_SIZEGRIP
+#ifndef TQT_NO_SIZEGRIP
if ( !enabled != !d->resizer ) {
if ( enabled ) {
d->resizer = new TQSizeGrip( this, "TQStatusBar::resizer" );
@@ -328,7 +328,7 @@ void TQStatusBar::reformat()
item = d->items.next();
}
l->addSpacing( 4 );
-#ifndef QT_NO_SIZEGRIP
+#ifndef TQT_NO_SIZEGRIP
if ( d->resizer ) {
maxH = TQMAX( maxH, d->resizer->sizeHint().height() );
d->box->addSpacing( 1 );
@@ -451,7 +451,7 @@ void TQStatusBar::paintEvent( TQPaintEvent * )
TQPainter p( this );
TQStatusBarPrivate::SBItem* item = d->items.first();
-#ifndef QT_NO_SIZEGRIP
+#ifndef TQT_NO_SIZEGRIP
int psx = ( d->resizer && d->resizer->isVisible() ) ? d->resizer->x() : width()-12;
#else
int psx = width() - 12;
@@ -502,7 +502,7 @@ bool TQStatusBar::event( TQEvent *e )
item = d->items.next();
}
-#ifndef QT_NO_SIZEGRIP
+#ifndef TQT_NO_SIZEGRIP
if ( d->resizer )
maxH = TQMAX( maxH, d->resizer->sizeHint().height() );
#endif