summaryrefslogtreecommitdiffstats
path: root/examples/qwerty
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qwerty')
-rw-r--r--examples/qwerty/qwerty.cpp18
-rw-r--r--examples/qwerty/qwerty.h2
2 files changed, 10 insertions, 10 deletions
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;