summaryrefslogtreecommitdiffstats
path: root/example/application.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-08 11:54:56 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-08 11:54:56 +0900
commitad963f6e626458b1f1da4e3ec6204643d2d6909b (patch)
treed3eefdba670c68a7c23e9d2bb2b14b0b1f5e2093 /example/application.cpp
parente867c97d483fa51344f1a3dda1d20cc499224428 (diff)
downloadtqscintilla-ad963f6e626458b1f1da4e3ec6204643d2d6909b.tar.gz
tqscintilla-ad963f6e626458b1f1da4e3ec6204643d2d6909b.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'example/application.cpp')
-rw-r--r--example/application.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/example/application.cpp b/example/application.cpp
index b832def..3352d8b 100644
--- a/example/application.cpp
+++ b/example/application.cpp
@@ -48,17 +48,17 @@ ApplicationWindow::ApplicationWindow()
openIcon = TQPixmap( fileopen );
TQToolButton * fileOpen
= new TQToolButton( openIcon, "Open File", TQString(),
- this, TQT_SLOT(choose()), fileTools, "open file" );
+ this, TQ_SLOT(choose()), fileTools, "open file" );
saveIcon = TQPixmap( filesave );
TQToolButton * fileSave
= new TQToolButton( saveIcon, "Save File", TQString(),
- this, TQT_SLOT(save()), fileTools, "save file" );
+ this, TQ_SLOT(save()), fileTools, "save file" );
printIcon = TQPixmap( fileprint );
TQToolButton * filePrint
= new TQToolButton( printIcon, "Print File", TQString(),
- this, TQT_SLOT(print()), fileTools, "print file" );
+ this, TQ_SLOT(print()), fileTools, "print file" );
(void)TQWhatsThis::whatsThisButton( fileTools );
@@ -91,41 +91,41 @@ ApplicationWindow::ApplicationWindow()
menuBar()->insertItem( "&File", file );
- file->insertItem( "&New", this, TQT_SLOT(newDoc()), CTRL+Key_N );
+ file->insertItem( "&New", this, TQ_SLOT(newDoc()), CTRL+Key_N );
int id;
id = file->insertItem( openIcon, "&Open...",
- this, TQT_SLOT(choose()), CTRL+Key_O );
+ this, TQ_SLOT(choose()), CTRL+Key_O );
file->setWhatsThis( id, fileOpenText );
id = file->insertItem( saveIcon, "&Save",
- this, TQT_SLOT(save()), CTRL+Key_S );
+ this, TQ_SLOT(save()), CTRL+Key_S );
file->setWhatsThis( id, fileSaveText );
- id = file->insertItem( "Save &As...", this, TQT_SLOT(saveAs()) );
+ id = file->insertItem( "Save &As...", this, TQ_SLOT(saveAs()) );
file->setWhatsThis( id, fileSaveText );
file->insertSeparator();
id = file->insertItem( printIcon, "&Print...",
- this, TQT_SLOT(print()), CTRL+Key_P );
+ this, TQ_SLOT(print()), CTRL+Key_P );
file->setWhatsThis( id, filePrintText );
file->insertSeparator();
- file->insertItem( "&Close", this, TQT_SLOT(close()), CTRL+Key_W );
+ file->insertItem( "&Close", this, TQ_SLOT(close()), CTRL+Key_W );
- file->insertItem( "&Quit", tqApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( "&Quit", tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_Q );
menuBar()->insertSeparator();
TQPopupMenu * help = new TQPopupMenu( this );
menuBar()->insertItem( "&Help", help );
- help->insertItem( "&About", this, TQT_SLOT(about()), Key_F1 );
- help->insertItem( "About &TQt", this, TQT_SLOT(aboutTQt()) );
+ help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1 );
+ help->insertItem( "About &TQt", this, TQ_SLOT(aboutTQt()) );
help->insertSeparator();
- help->insertItem( "What's &This", this, TQT_SLOT(whatsThis()), SHIFT+Key_F1 );
+ help->insertItem( "What's &This", this, TQ_SLOT(whatsThis()), SHIFT+Key_F1 );
e = new TQextScintilla( this, "editor" );
e->setFocus();