summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/canvas/canvas.cpp6
-rw-r--r--examples/demo/dnd/styledbutton.cpp6
-rw-r--r--examples/demo/dnd/styledbutton.h4
-rw-r--r--examples/demo/qthumbwheel.cpp2
-rw-r--r--examples/demo/qthumbwheel.h4
-rw-r--r--examples/demo/textdrawing/helpwindow.cpp4
-rw-r--r--examples/demo/textdrawing/textedit.cpp2
-rw-r--r--examples/drawdemo/drawdemo.cpp4
-rw-r--r--examples/drawlines/connect.cpp2
-rw-r--r--examples/hello/main.cpp2
-rw-r--r--examples/helpviewer/helpwindow.cpp4
-rw-r--r--examples/mdi/application.cpp10
-rw-r--r--examples/qwerty/qwerty.cpp18
-rw-r--r--examples/qwerty/qwerty.h2
-rw-r--r--examples/scribble/scribble.cpp2
-rw-r--r--examples/showimg/showimg.cpp4
-rw-r--r--examples/tablet/canvas.cpp2
-rw-r--r--examples/tetrix/qtetrix.cpp6
-rw-r--r--examples/tetrix/qtetrix.h2
-rw-r--r--examples/textedit/textedit.cpp2
-rw-r--r--examples/themes/metal.cpp2
-rw-r--r--examples/themes/metal.h2
-rw-r--r--examples/themes/themes.cpp8
-rw-r--r--examples/themes/wood.cpp2
-rw-r--r--examples/themes/wood.h2
-rw-r--r--examples/thread/semaphores/main.cpp2
26 files changed, 53 insertions, 53 deletions
diff --git a/examples/canvas/canvas.cpp b/examples/canvas/canvas.cpp
index 3c96ca4ac..7e78c7ceb 100644
--- a/examples/canvas/canvas.cpp
+++ b/examples/canvas/canvas.cpp
@@ -689,7 +689,7 @@ void Main::addMesh()
int rows = h / dist;
int cols = w / dist;
-#ifndef QT_NO_PROGRESSDIALOG
+#ifndef TQT_NO_PROGRESSDIALOG
TQProgressDialog progress( "Creating mesh...", "Abort", rows,
this, "progress", TRUE );
#endif
@@ -723,13 +723,13 @@ void Main::addMesh()
el->show();
}
lastRow[n-1]=prev;
-#ifndef QT_NO_PROGRESSDIALOG
+#ifndef TQT_NO_PROGRESSDIALOG
progress.setProgress( j );
if ( progress.wasCancelled() )
break;
#endif
}
-#ifndef QT_NO_PROGRESSDIALOG
+#ifndef TQT_NO_PROGRESSDIALOG
progress.setProgress( rows );
#endif
// tqDebug( "%d nodes, %d edges", nodecount, EdgeItem::count() );
diff --git a/examples/demo/dnd/styledbutton.cpp b/examples/demo/dnd/styledbutton.cpp
index 383f555d2..e04be6317 100644
--- a/examples/demo/dnd/styledbutton.cpp
+++ b/examples/demo/dnd/styledbutton.cpp
@@ -229,7 +229,7 @@ void StyledButton::mousePressEvent(TQMouseEvent* e)
void StyledButton::mouseMoveEvent(TQMouseEvent* e)
{
TQButton::mouseMoveEvent( e );
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
if ( !mousePressed )
return;
if ( ( pressPos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() ) {
@@ -256,7 +256,7 @@ void StyledButton::mouseMoveEvent(TQMouseEvent* e)
#endif
}
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
void StyledButton::dragEnterEvent( TQDragEnterEvent *e )
{
setFocus();
@@ -305,4 +305,4 @@ void StyledButton::dropEvent( TQDropEvent *e )
e->ignore();
}
}
-#endif // QT_NO_DRAGANDDROP
+#endif // TQT_NO_DRAGANDDROP
diff --git a/examples/demo/dnd/styledbutton.h b/examples/demo/dnd/styledbutton.h
index 80fae5c10..84ad4e500 100644
--- a/examples/demo/dnd/styledbutton.h
+++ b/examples/demo/dnd/styledbutton.h
@@ -82,12 +82,12 @@ signals:
protected:
void mousePressEvent(TQMouseEvent*);
void mouseMoveEvent(TQMouseEvent*);
-#ifndef QT_NO_DRAGANDDROP
+#ifndef TQT_NO_DRAGANDDROP
void dragEnterEvent ( TQDragEnterEvent * );
void dragMoveEvent ( TQDragMoveEvent * );
void dragLeaveEvent ( TQDragLeaveEvent * );
void dropEvent ( TQDropEvent * );
-#endif // QT_NO_DRAGANDDROP
+#endif // TQT_NO_DRAGANDDROP
void drawButton( TQPainter* );
void drawButtonLabel( TQPainter* );
void resizeEvent( TQResizeEvent* );
diff --git a/examples/demo/qthumbwheel.cpp b/examples/demo/qthumbwheel.cpp
index 7dc549550..984aa1f43 100644
--- a/examples/demo/qthumbwheel.cpp
+++ b/examples/demo/qthumbwheel.cpp
@@ -40,7 +40,7 @@
#include "qthumbwheel.h"
-#ifndef QT_NO_THUMBWHEEL
+#ifndef TQT_NO_THUMBWHEEL
#include <ntqpainter.h>
#include <ntqdrawutil.h>
#include <ntqpixmap.h>
diff --git a/examples/demo/qthumbwheel.h b/examples/demo/qthumbwheel.h
index 45b7afa13..9f5de2783 100644
--- a/examples/demo/qthumbwheel.h
+++ b/examples/demo/qthumbwheel.h
@@ -46,7 +46,7 @@
#include "ntqrangecontrol.h"
#endif // QT_H
-#ifndef QT_NO_THUMBWHEEL
+#ifndef TQT_NO_THUMBWHEEL
class TQThumbWheel : public TQFrame, public TQRangeControl
{
@@ -114,6 +114,6 @@ inline double TQThumbWheel::transmissionRatio() const
return rat;
}
-#endif // QT_NO_WHEEL
+#endif // TQT_NO_WHEEL
#endif // TQWHEEL_H
diff --git a/examples/demo/textdrawing/helpwindow.cpp b/examples/demo/textdrawing/helpwindow.cpp
index 27d61d1ad..833caa179 100644
--- a/examples/demo/textdrawing/helpwindow.cpp
+++ b/examples/demo/textdrawing/helpwindow.cpp
@@ -216,7 +216,7 @@ void HelpWindow::aboutTQt()
void HelpWindow::openFile()
{
-#ifndef QT_NO_FILEDIALOG
+#ifndef TQT_NO_FILEDIALOG
TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null, this );
if ( !fn.isEmpty() )
browser->setSource( fn );
@@ -230,7 +230,7 @@ void HelpWindow::newWindow()
void HelpWindow::print()
{
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
TQPrinter printer;
printer.setFullPage(TRUE);
if ( printer.setup() ) {
diff --git a/examples/demo/textdrawing/textedit.cpp b/examples/demo/textdrawing/textedit.cpp
index d76f16a0e..c564f21b6 100644
--- a/examples/demo/textdrawing/textedit.cpp
+++ b/examples/demo/textdrawing/textedit.cpp
@@ -271,7 +271,7 @@ void TextEdit::filePrint()
{
if ( !currentEditor() )
return;
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
TQPrinter printer;
printer.setFullPage(TRUE);
TQPaintDeviceMetrics screen( this );
diff --git a/examples/drawdemo/drawdemo.cpp b/examples/drawdemo/drawdemo.cpp
index 915e218bf..4d5ab2016 100644
--- a/examples/drawdemo/drawdemo.cpp
+++ b/examples/drawdemo/drawdemo.cpp
@@ -211,7 +211,7 @@ DrawView::DrawView()
// If -- at compile time -- printer support will be disabled,
// we won't set up printing functionality.
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
printer = new TQPrinter;
@@ -234,7 +234,7 @@ DrawView::DrawView()
//
DrawView::~DrawView()
{
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
delete printer;
#endif
}
diff --git a/examples/drawlines/connect.cpp b/examples/drawlines/connect.cpp
index bb4048f91..3b7e140cb 100644
--- a/examples/drawlines/connect.cpp
+++ b/examples/drawlines/connect.cpp
@@ -123,7 +123,7 @@ int main( int argc, char **argv )
{
TQApplication a( argc, argv );
ConnectWidget connect;
-#ifndef QT_NO_WIDGET_TOPEXTRA // for TQt/Embedded minimal build
+#ifndef TQT_NO_WIDGET_TOPEXTRA // for TQt/Embedded minimal build
connect.setCaption( "TQt Example - Draw lines");
#endif
a.setMainWidget( &connect );
diff --git a/examples/hello/main.cpp b/examples/hello/main.cpp
index 12ea3cf34..95fd3773b 100644
--- a/examples/hello/main.cpp
+++ b/examples/hello/main.cpp
@@ -28,7 +28,7 @@ int main( int argc, char **argv )
if ( s.isEmpty() )
s = "Hello, World";
Hello h( s );
-#ifndef QT_NO_WIDGET_TOPEXTRA // for TQt/Embedded minimal build
+#ifndef TQT_NO_WIDGET_TOPEXTRA // for TQt/Embedded minimal build
h.setCaption( "TQt says hello" );
#endif
TQObject::connect( &h, SIGNAL(clicked()), &a, SLOT(quit()) );
diff --git a/examples/helpviewer/helpwindow.cpp b/examples/helpviewer/helpwindow.cpp
index 724e1ed4a..7bdbad8af 100644
--- a/examples/helpviewer/helpwindow.cpp
+++ b/examples/helpviewer/helpwindow.cpp
@@ -218,7 +218,7 @@ void HelpWindow::aboutTQt()
void HelpWindow::openFile()
{
-#ifndef QT_NO_FILEDIALOG
+#ifndef TQT_NO_FILEDIALOG
TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null, this );
if ( !fn.isEmpty() )
browser->setSource( fn );
@@ -232,7 +232,7 @@ void HelpWindow::newWindow()
void HelpWindow::print()
{
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
TQPrinter printer( TQPrinter::HighResolution );
printer.setFullPage(TRUE);
if ( printer.setup( this ) ) {
diff --git a/examples/mdi/application.cpp b/examples/mdi/application.cpp
index 1b8604f58..6ec40009f 100644
--- a/examples/mdi/application.cpp
+++ b/examples/mdi/application.cpp
@@ -69,7 +69,7 @@ ApplicationWindow::ApplicationWindow()
= new TQToolButton( saveIcon, "Save File", TQString::null,
this, SLOT(save()), fileTools, "save file" );
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
printer = new TQPrinter( TQPrinter::HighResolution );
TQPixmap printIcon;
@@ -99,7 +99,7 @@ ApplicationWindow::ApplicationWindow()
file->setWhatsThis( id, fileSaveText );
id = file->insertItem( "Save &As...", this, SLOT(saveAs()) );
file->setWhatsThis( id, fileSaveText );
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
file->insertSeparator();
id = file->insertItem( printIcon, "&Print...",
this, SLOT(print()), CTRL+Key_P );
@@ -136,7 +136,7 @@ ApplicationWindow::ApplicationWindow()
ApplicationWindow::~ApplicationWindow()
{
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
delete printer;
#endif
}
@@ -186,7 +186,7 @@ void ApplicationWindow::saveAs()
void ApplicationWindow::print()
{
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
MDIWindow* m = (MDIWindow*)ws->activeWindow();
if ( m )
m->print( printer );
@@ -394,7 +394,7 @@ void MDIWindow::saveAs()
void MDIWindow::print( TQPrinter* printer)
{
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
int pageNo = 1;
if ( printer->setup(this) ) { // printer dialog
diff --git a/examples/qwerty/qwerty.cpp b/examples/qwerty/qwerty.cpp
index 5f045448f..ab1441749 100644
--- a/examples/qwerty/qwerty.cpp
+++ b/examples/qwerty/qwerty.cpp
@@ -46,7 +46,7 @@ Editor::Editor( TQWidget * parent , const char * name )
save_as = new TQPopupMenu();
file->insertItem( "Sa&ve As", save_as );
file->insertItem( "Add &Encoding", this, SLOT(addEncoding()) );
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
file->insertSeparator();
file->insertItem( "&Print...", this, SLOT(print()), ALT+Key_P );
#endif
@@ -64,7 +64,7 @@ Editor::Editor( TQWidget * parent , const char * name )
edit->insertItem( "To &Uppercase", this, SLOT(toUpper()), ALT+Key_U );
edit->insertItem( "To &Lowercase", this, SLOT(toLower()), ALT+Key_L );
-#ifndef QT_NO_FONTDIALOG
+#ifndef TQT_NO_FONTDIALOG
edit->insertSeparator();
edit->insertItem( "&Select Font" , this, SLOT(font()), ALT+Key_T );
#endif
@@ -90,7 +90,7 @@ Editor::~Editor()
void Editor::font()
{
-#ifndef QT_NO_FONTDIALOG
+#ifndef TQT_NO_FONTDIALOG
bool ok;
TQFont f = TQFontDialog::getFont( &ok, e->font() );
if ( ok ) {
@@ -142,7 +142,7 @@ void Editor::newDoc()
void Editor::load()
{
-#ifndef QT_NO_FILEDIALOG
+#ifndef TQT_NO_FILEDIALOG
TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null, this );
if ( !fn.isEmpty() )
load( fn, -1 );
@@ -190,7 +190,7 @@ void Editor::load( const TQString& fileName, int code )
void Editor::openAsEncoding( int code )
{
-#ifndef QT_NO_FILEDIALOG
+#ifndef TQT_NO_FILEDIALOG
//storing filename (proper save) is left as an exercise...
TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null, this );
if ( !fn.isEmpty() )
@@ -200,7 +200,7 @@ void Editor::openAsEncoding( int code )
bool Editor::save()
{
-#ifndef QT_NO_FILEDIALOG
+#ifndef TQT_NO_FILEDIALOG
//storing filename (proper save) is left as an exercise...
TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null, this );
if ( !fn.isEmpty() )
@@ -211,7 +211,7 @@ bool Editor::save()
void Editor::saveAsEncoding( int code )
{
-#ifndef QT_NO_FILEDIALOG
+#ifndef TQT_NO_FILEDIALOG
//storing filename (proper save) is left as an exercise...
TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null, this );
if ( !fn.isEmpty() )
@@ -221,7 +221,7 @@ void Editor::saveAsEncoding( int code )
void Editor::addEncoding()
{
-#ifndef QT_NO_FILEDIALOG
+#ifndef TQT_NO_FILEDIALOG
TQString fn = TQFileDialog::getOpenFileName( TQString::null, "*.map", this );
if ( !fn.isEmpty() ) {
TQFile f(fn);
@@ -275,7 +275,7 @@ bool Editor::saveAs( const TQString& fileName, int code )
void Editor::print()
{
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
if ( printer.setup(this) ) { // opens printer dialog
printer.setFullPage(TRUE); // we'll set our own margins
TQPainter p;
diff --git a/examples/qwerty/qwerty.h b/examples/qwerty/qwerty.h
index efd2202fc..f0025c8a1 100644
--- a/examples/qwerty/qwerty.h
+++ b/examples/qwerty/qwerty.h
@@ -47,7 +47,7 @@ private:
void rebuildCodecList();
TQMenuBar *m;
TQMultiLineEdit *e;
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
TQPrinter printer;
#endif
TQPopupMenu *save_as;
diff --git a/examples/scribble/scribble.cpp b/examples/scribble/scribble.cpp
index 03a3cf3e0..f031044b1 100644
--- a/examples/scribble/scribble.cpp
+++ b/examples/scribble/scribble.cpp
@@ -36,7 +36,7 @@ Canvas::Canvas( TQWidget *parent, const char *name )
if ((tqApp->argc() > 0) && !buffer.load(tqApp->argv()[1]))
buffer.fill( colorGroup().base() );
setBackgroundMode( TQWidget::PaletteBase );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
setCursor( TQt::crossCursor );
#endif
}
diff --git a/examples/showimg/showimg.cpp b/examples/showimg/showimg.cpp
index 579dbb514..52545f57e 100644
--- a/examples/showimg/showimg.cpp
+++ b/examples/showimg/showimg.cpp
@@ -597,14 +597,14 @@ void ImageViewer::rot180()
void ImageViewer::copy()
{
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
TQApplication::clipboard()->setImage(image); // Less information loss
#endif
}
void ImageViewer::paste()
{
-#ifndef QT_NO_MIMECLIPBOARD
+#ifndef TQT_NO_MIMECLIPBOARD
TQImage p = TQApplication::clipboard()->image();
if ( !p.isNull() ) {
filename = "pasted";
diff --git a/examples/tablet/canvas.cpp b/examples/tablet/canvas.cpp
index 33ea83fad..cd5da7d81 100644
--- a/examples/tablet/canvas.cpp
+++ b/examples/tablet/canvas.cpp
@@ -26,7 +26,7 @@ Canvas::Canvas( TQWidget *parent, const char *name, WFlags fl )
if ((tqApp->argc() > 0) && !buffer.load(tqApp->argv()[1]))
buffer.fill( colorGroup().base() );
setBackgroundMode( TQWidget::PaletteBase );
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
setCursor( TQt::crossCursor );
#endif
}
diff --git a/examples/tetrix/qtetrix.cpp b/examples/tetrix/qtetrix.cpp
index dd709c5b0..bd624b4ab 100644
--- a/examples/tetrix/qtetrix.cpp
+++ b/examples/tetrix/qtetrix.cpp
@@ -96,7 +96,7 @@ TQTetrix::TQTetrix( TQWidget *parent, const char *name )
board = new TQTetrixBoard(this);
showNext = new ShowNextPiece(this);
-#ifndef QT_NO_LCDNUMBER
+#ifndef TQT_NO_LCDNUMBER
showScore = new TQLCDNumber(5,this);
showLevel = new TQLCDNumber(2,this);
showLines = new TQLCDNumber(5,this);
@@ -124,7 +124,7 @@ TQTetrix::TQTetrix( TQWidget *parent, const char *name )
connect( board, SIGNAL(drawNextSquareSignal(int,int,TQColor*)), showNext,
SLOT(drawNextSquare(int,int,TQColor*)) );
connect( showNext, SIGNAL(update()), board, SLOT(updateNext()) );
-#ifndef QT_NO_LCDNUMBER
+#ifndef TQT_NO_LCDNUMBER
connect( board, SIGNAL(updateScoreSignal(int)), showScore,
SLOT(display(int)) );
connect( board, SIGNAL(updateLevelSignal(int)), showLevel,
@@ -148,7 +148,7 @@ TQTetrix::TQTetrix( TQWidget *parent, const char *name )
showScore->setGeometry( 330, 40, 178, 93 );
showLevel->setGeometry( 50, 160, 78, 93 );
showLines->setGeometry( 330, 160, 178, 93 );
-#ifndef QT_NO_LCDNUMBER
+#ifndef TQT_NO_LCDNUMBER
showScore->display( 0 );
showLevel->display( 0 );
showLines->display( 0 );
diff --git a/examples/tetrix/qtetrix.h b/examples/tetrix/qtetrix.h
index 3fc9f4297..b0731c872 100644
--- a/examples/tetrix/qtetrix.h
+++ b/examples/tetrix/qtetrix.h
@@ -52,7 +52,7 @@ private:
TQTetrixBoard *board;
ShowNextPiece *showNext;
-#ifndef QT_NO_LCDNUMBER
+#ifndef TQT_NO_LCDNUMBER
TQLCDNumber *showScore;
TQLCDNumber *showLevel;
TQLCDNumber *showLines;
diff --git a/examples/textedit/textedit.cpp b/examples/textedit/textedit.cpp
index 66a3a4972..20294997b 100644
--- a/examples/textedit/textedit.cpp
+++ b/examples/textedit/textedit.cpp
@@ -269,7 +269,7 @@ void TextEdit::filePrint()
{
if ( !currentEditor() )
return;
-#ifndef QT_NO_PRINTER
+#ifndef TQT_NO_PRINTER
TQPrinter printer( TQPrinter::HighResolution );
printer.setFullPage(TRUE);
if ( printer.setup( this ) ) {
diff --git a/examples/themes/metal.cpp b/examples/themes/metal.cpp
index c3815c625..ee3b57d12 100644
--- a/examples/themes/metal.cpp
+++ b/examples/themes/metal.cpp
@@ -9,7 +9,7 @@
#include "metal.h"
-#ifndef QT_NO_STYLE_WINDOWS
+#ifndef TQT_NO_STYLE_WINDOWS
#include "ntqapplication.h"
#include "ntqcombobox.h"
diff --git a/examples/themes/metal.h b/examples/themes/metal.h
index 6ff38d300..7838bd1c5 100644
--- a/examples/themes/metal.h
+++ b/examples/themes/metal.h
@@ -17,7 +17,7 @@
#include <ntqpalette.h>
-#ifndef QT_NO_STYLE_WINDOWS
+#ifndef TQT_NO_STYLE_WINDOWS
#include <ntqwindowsstyle.h>
diff --git a/examples/themes/themes.cpp b/examples/themes/themes.cpp
index 1f5417625..88111945f 100644
--- a/examples/themes/themes.cpp
+++ b/examples/themes/themes.cpp
@@ -60,7 +60,7 @@ Themes::Themes( TQWidget *parent, const char *name, WFlags f )
connect( styleMapper, SIGNAL( mapped( const TQString& ) ), this, SLOT( makeStyle( const TQString& ) ) );
TQStringList list = TQStyleFactory::keys();
list.sort();
-#ifndef QT_NO_STYLE_WINDOWS
+#ifndef TQT_NO_STYLE_WINDOWS
list.insert(list.begin(), "Norwegian Wood");
list.insert(list.begin(), "Metal");
#endif
@@ -94,7 +94,7 @@ Themes::Themes( TQWidget *parent, const char *name, WFlags f )
help->insertItem( "&About", this, SLOT(about()), Key_F1);
help->insertItem( "About &TQt", this, SLOT(aboutTQt()));
-#ifndef QT_NO_STYLE_WINDOWS
+#ifndef TQT_NO_STYLE_WINDOWS
tqApp->setStyle( new NorwegianWoodStyle );
#endif
}
@@ -102,11 +102,11 @@ Themes::Themes( TQWidget *parent, const char *name, WFlags f )
void Themes::makeStyle(const TQString &style)
{
if(style == "Norwegian Wood") {
-#ifndef QT_NO_STYLE_WINDOWS
+#ifndef TQT_NO_STYLE_WINDOWS
tqApp->setStyle( new NorwegianWoodStyle );
#endif
} else if( style == "Metal" ) {
-#ifndef QT_NO_STYLE_WINDOWS
+#ifndef TQT_NO_STYLE_WINDOWS
tqApp->setStyle( new MetalStyle );
#endif
} else {
diff --git a/examples/themes/wood.cpp b/examples/themes/wood.cpp
index dd1002bbf..b9cf6cda3 100644
--- a/examples/themes/wood.cpp
+++ b/examples/themes/wood.cpp
@@ -9,7 +9,7 @@
#include "wood.h"
-#ifndef QT_NO_STYLE_WINDOWS
+#ifndef TQT_NO_STYLE_WINDOWS
#include "ntqapplication.h"
#include "ntqcombobox.h"
diff --git a/examples/themes/wood.h b/examples/themes/wood.h
index 3c2343704..75778f55c 100644
--- a/examples/themes/wood.h
+++ b/examples/themes/wood.h
@@ -17,7 +17,7 @@
#include <ntqpalette.h>
-#ifndef QT_NO_STYLE_WINDOWS
+#ifndef TQT_NO_STYLE_WINDOWS
#include <ntqwindowsstyle.h>
diff --git a/examples/thread/semaphores/main.cpp b/examples/thread/semaphores/main.cpp
index a7704805c..85dec7171 100644
--- a/examples/thread/semaphores/main.cpp
+++ b/examples/thread/semaphores/main.cpp
@@ -17,7 +17,7 @@
#include <ntqmessagebox.h>
#include <ntqlabel.h>
-#if defined(QT_NO_THREAD)
+#if defined(TQT_NO_THREAD)
# error Thread support not enabled.
#endif