summaryrefslogtreecommitdiffstats
path: root/examples/showimg
diff options
context:
space:
mode:
Diffstat (limited to 'examples/showimg')
-rw-r--r--examples/showimg/imagetexteditor.cpp24
-rw-r--r--examples/showimg/main.cpp2
-rw-r--r--examples/showimg/showimg.cpp32
3 files changed, 29 insertions, 29 deletions
diff --git a/examples/showimg/imagetexteditor.cpp b/examples/showimg/imagetexteditor.cpp
index 5f950b337..2abdabfb7 100644
--- a/examples/showimg/imagetexteditor.cpp
+++ b/examples/showimg/imagetexteditor.cpp
@@ -48,23 +48,23 @@ ImageTextEditor::ImageTextEditor( TQImage& i, TQWidget *parent, const char *name
TQPushButton* cancel = new TQPushButton("Cancel",hbox);
TQPushButton* ok = new TQPushButton("OK",hbox);
- connect(add,SIGNAL(clicked()),
- this,SLOT(addText()));
+ connect(add,TQ_SIGNAL(clicked()),
+ this,TQ_SLOT(addText()));
- connect(remove,SIGNAL(clicked()),
- this,SLOT(removeText()));
+ connect(remove,TQ_SIGNAL(clicked()),
+ this,TQ_SLOT(removeText()));
- connect(ok,SIGNAL(clicked()),
- this,SLOT(accept()));
+ connect(ok,TQ_SIGNAL(clicked()),
+ this,TQ_SLOT(accept()));
- connect(cancel,SIGNAL(clicked()),
- this,SLOT(reject()));
+ connect(cancel,TQ_SIGNAL(clicked()),
+ this,TQ_SLOT(reject()));
- connect(languages,SIGNAL(activated(int)),
- this,SLOT(updateText()));
+ connect(languages,TQ_SIGNAL(activated(int)),
+ this,TQ_SLOT(updateText()));
- connect(keys,SIGNAL(activated(int)),
- this,SLOT(updateText()));
+ connect(keys,TQ_SIGNAL(activated(int)),
+ this,TQ_SLOT(updateText()));
imageChanged();
}
diff --git a/examples/showimg/main.cpp b/examples/showimg/main.cpp
index 1d68c04b3..a0f5d69a3 100644
--- a/examples/showimg/main.cpp
+++ b/examples/showimg/main.cpp
@@ -50,7 +50,7 @@ int main( int argc, char **argv )
}
}
- TQObject::connect(tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit()));
+ TQObject::connect(tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit()));
return a.exec();
}
diff --git a/examples/showimg/showimg.cpp b/examples/showimg/showimg.cpp
index 52545f57e..4ef1a1d97 100644
--- a/examples/showimg/showimg.cpp
+++ b/examples/showimg/showimg.cpp
@@ -47,32 +47,32 @@ ImageViewer::ImageViewer( TQWidget *parent, const char *name, int wFlags )
saveimage->insertItem( f );
savepixmap->insertItem( f );
}
- connect( saveimage, SIGNAL(activated(int)), this, SLOT(saveImage(int)) );
- connect( savepixmap, SIGNAL(activated(int)), this, SLOT(savePixmap(int)) );
+ connect( saveimage, TQ_SIGNAL(activated(int)), this, TQ_SLOT(saveImage(int)) );
+ connect( savepixmap, TQ_SIGNAL(activated(int)), this, TQ_SLOT(savePixmap(int)) );
file = new TQPopupMenu( menubar );
menubar->insertItem( "&File", file );
- file->insertItem( "&New window", this, SLOT(newWindow()), CTRL+Key_N );
- file->insertItem( "&Open...", this, SLOT(openFile()), CTRL+Key_O );
+ file->insertItem( "&New window", this, TQ_SLOT(newWindow()), CTRL+Key_N );
+ file->insertItem( "&Open...", this, TQ_SLOT(openFile()), CTRL+Key_O );
si = file->insertItem( "Save image", saveimage );
sp = file->insertItem( "Save pixmap", savepixmap );
file->insertSeparator();
- file->insertItem( "E&xit", tqApp, SLOT(quit()), CTRL+Key_Q );
+ file->insertItem( "E&xit", tqApp, TQ_SLOT(quit()), CTRL+Key_Q );
edit = new TQPopupMenu( menubar );
menubar->insertItem( "&Edit", edit );
- edit->insertItem("&Copy", this, SLOT(copy()), CTRL+Key_C);
- edit->insertItem("&Paste", this, SLOT(paste()), CTRL+Key_V);
+ edit->insertItem("&Copy", this, TQ_SLOT(copy()), CTRL+Key_C);
+ edit->insertItem("&Paste", this, TQ_SLOT(paste()), CTRL+Key_V);
edit->insertSeparator();
- edit->insertItem("&Horizontal flip", this, SLOT(hFlip()), ALT+Key_H);
- edit->insertItem("&Vertical flip", this, SLOT(vFlip()), ALT+Key_V);
- edit->insertItem("&Rotate 180", this, SLOT(rot180()), ALT+Key_R);
+ edit->insertItem("&Horizontal flip", this, TQ_SLOT(hFlip()), ALT+Key_H);
+ edit->insertItem("&Vertical flip", this, TQ_SLOT(vFlip()), ALT+Key_V);
+ edit->insertItem("&Rotate 180", this, TQ_SLOT(rot180()), ALT+Key_R);
edit->insertSeparator();
- edit->insertItem("&Text...", this, SLOT(editText()));
+ edit->insertItem("&Text...", this, TQ_SLOT(editText()));
edit->insertSeparator();
- t1 = edit->insertItem( "Convert to &1 bit", this, SLOT(to1Bit()) );
- t8 = edit->insertItem( "Convert to &8 bit", this, SLOT(to8Bit()) );
- t32 = edit->insertItem( "Convert to &32 bit", this, SLOT(to32Bit()) );
+ t1 = edit->insertItem( "Convert to &1 bit", this, TQ_SLOT(to1Bit()) );
+ t8 = edit->insertItem( "Convert to &8 bit", this, TQ_SLOT(to8Bit()) );
+ t32 = edit->insertItem( "Convert to &32 bit", this, TQ_SLOT(to32Bit()) );
options = new TQPopupMenu( menubar );
menubar->insertItem( "&Options", options );
@@ -102,9 +102,9 @@ ImageViewer::ImageViewer( TQWidget *parent, const char *name, int wFlags )
TQPopupMenu* help = new TQPopupMenu( menubar );
menubar->insertItem( "&Help", help );
- help->insertItem( "Help!", this, SLOT(giveHelp()), CTRL+Key_H );
+ help->insertItem( "Help!", this, TQ_SLOT(giveHelp()), CTRL+Key_H );
- connect( options, SIGNAL(activated(int)), this, SLOT(doOption(int)) );
+ connect( options, TQ_SIGNAL(activated(int)), this, TQ_SLOT(doOption(int)) );
status = new TQLabel(this);
status->setFrameStyle( TQFrame::WinPanel | TQFrame::Sunken );