summaryrefslogtreecommitdiffstats
path: root/src/widgets/qwhatsthis.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/qwhatsthis.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/qwhatsthis.cpp')
-rw-r--r--src/widgets/qwhatsthis.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/widgets/qwhatsthis.cpp b/src/widgets/qwhatsthis.cpp
index 2a61fec80..cd87acd5c 100644
--- a/src/widgets/qwhatsthis.cpp
+++ b/src/widgets/qwhatsthis.cpp
@@ -37,7 +37,7 @@
**********************************************************************/
#include "ntqwhatsthis.h"
-#ifndef QT_NO_WHATSTHIS
+#ifndef TQT_NO_WHATSTHIS
#include "ntqapplication.h"
#include "ntqpaintdevicemetrics.h"
#include "ntqpixmap.h"
@@ -163,7 +163,7 @@ protected:
private:
TQString text;
-#ifndef QT_NO_RICHTEXT
+#ifndef TQT_NO_RICHTEXT
TQSimpleRichText* doc;
#endif
TQString anchor;
@@ -247,7 +247,7 @@ TQWhatsThat::TQWhatsThat( TQWidget* w, const TQString& txt, TQWidget* parent, co
setBackgroundMode( NoBackground );
setPalette( TQToolTip::palette() );
setMouseTracking( TRUE );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
setCursor( arrowCursor );
#endif
@@ -256,7 +256,7 @@ TQWhatsThat::TQWhatsThat( TQWidget* w, const TQString& txt, TQWidget* parent, co
TQRect r;
-#ifndef QT_NO_RICHTEXT
+#ifndef TQT_NO_RICHTEXT
doc = 0;
if ( TQStyleSheet::mightBeRichText( text ) ) {
TQFont f = TQApplication::font( this );
@@ -291,7 +291,7 @@ TQWhatsThat::~TQWhatsThat()
{
if ( wt && wt->whatsThat == this )
wt->whatsThat = 0;
-#ifndef QT_NO_RICHTEXT
+#ifndef TQT_NO_RICHTEXT
if ( doc )
delete doc;
#endif
@@ -309,7 +309,7 @@ void TQWhatsThat::mousePressEvent( TQMouseEvent* e )
{
pressed = TRUE;
if ( e->button() == LeftButton && rect().contains( e->pos() ) ) {
-#ifndef QT_NO_RICHTEXT
+#ifndef TQT_NO_RICHTEXT
if ( doc )
anchor = doc->anchorAt( e->pos() - TQPoint( hMargin, vMargin) );
#endif
@@ -322,7 +322,7 @@ void TQWhatsThat::mouseReleaseEvent( TQMouseEvent* e )
{
if ( !pressed )
return;
-#ifndef QT_NO_RICHTEXT
+#ifndef TQT_NO_RICHTEXT
if ( e->button() == LeftButton && doc && rect().contains( e->pos() ) ) {
TQString a = doc->anchorAt( e->pos() - TQPoint( hMargin, vMargin ) );
TQString href;
@@ -341,8 +341,8 @@ void TQWhatsThat::mouseReleaseEvent( TQMouseEvent* e )
void TQWhatsThat::mouseMoveEvent( TQMouseEvent* e)
{
-#ifndef QT_NO_RICHTEXT
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_RICHTEXT
+#ifndef TQT_NO_CURSOR
if ( !doc )
return;
TQString a = doc->anchorAt( e->pos() - TQPoint( hMargin, vMargin ) );
@@ -402,7 +402,7 @@ void TQWhatsThat::paintEvent( TQPaintEvent* )
p.setPen( colorGroup().foreground() );
r.addCoords( hMargin, vMargin, -hMargin, -vMargin );
-#ifndef QT_NO_RICHTEXT
+#ifndef TQT_NO_RICHTEXT
if ( doc ) {
doc->draw( &p, r.x(), r.y(), r, colorGroup(), 0 );
}
@@ -471,7 +471,7 @@ void TQWhatsThisButton::mouseReleased()
{
if ( wt->state == TQWhatsThisPrivate::Inactive && isOn() ) {
TQWhatsThisPrivate::setUpWhatsThis();
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
TQApplication::setOverrideCursor( whatsThisCursor, FALSE );
#endif
wt->state = TQWhatsThisPrivate::Waiting;
@@ -501,7 +501,7 @@ TQWhatsThisPrivate::TQWhatsThisPrivate()
TQWhatsThisPrivate::~TQWhatsThisPrivate()
{
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
if ( state == Waiting && tqApp )
TQApplication::restoreOverrideCursor();
#endif
@@ -639,7 +639,7 @@ void TQWhatsThisPrivate::leaveWhatsThisMode()
++it;
b->setOn( FALSE );
}
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
TQApplication::restoreOverrideCursor();
#endif
state = Inactive;
@@ -919,7 +919,7 @@ void TQWhatsThis::enterWhatsThisMode()
TQWhatsThisPrivate::setUpWhatsThis();
if ( wt->state == TQWhatsThisPrivate::Inactive ) {
wt->enterWhatsThisMode();
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
TQApplication::setOverrideCursor( whatsThisCursor, FALSE );
#endif
wt->state = TQWhatsThisPrivate::Waiting;