summaryrefslogtreecommitdiffstats
path: root/examples/mdi/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mdi/application.cpp')
-rw-r--r--examples/mdi/application.cpp10
1 files changed, 5 insertions, 5 deletions
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