diff options
Diffstat (limited to 'qtjava/javalib/examples/menu/MenuExample.java')
-rw-r--r-- | qtjava/javalib/examples/menu/MenuExample.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/qtjava/javalib/examples/menu/MenuExample.java b/qtjava/javalib/examples/menu/MenuExample.java index dd619d09..10fe5c5c 100644 --- a/qtjava/javalib/examples/menu/MenuExample.java +++ b/qtjava/javalib/examples/menu/MenuExample.java @@ -135,32 +135,32 @@ MenuExample( TQWidget parent, String name ) TQPopupMenu print = new TQPopupMenu( this ); print.insertTearOffHandle(); - print.insertItem( "&Print to printer", this, SLOT("printer()") ); - print.insertItem( "Print to &file", this, SLOT("file()") ); - print.insertItem( "Print to fa&x", this, SLOT("fax()") ); + print.insertItem( "&Print to printer", this, TQ_SLOT("printer()") ); + print.insertItem( "Print to &file", this, TQ_SLOT("file()") ); + print.insertItem( "Print to fa&x", this, TQ_SLOT("fax()") ); print.insertSeparator(); - print.insertItem( "Printer &Setup", this, SLOT("printerSetup()") ); + print.insertItem( "Printer &Setup", this, TQ_SLOT("printerSetup()") ); TQPopupMenu file = new TQPopupMenu( this ); - file.insertItem( new TQIconSet(p1), "&Open", this, SLOT("open()"), new TQKeySequence(CTRL+Key_O) ); - file.insertItem( new TQIconSet(p2), "&New", this, SLOT("news()"), new TQKeySequence(CTRL+Key_N) ); - file.insertItem( new TQIconSet(p3), "&Save", this, SLOT("save()"), new TQKeySequence(CTRL+Key_S) ); - file.insertItem( "&Close", this, SLOT("closeDoc()"), new TQKeySequence(CTRL+Key_W) ); + file.insertItem( new TQIconSet(p1), "&Open", this, TQ_SLOT("open()"), new TQKeySequence(CTRL+Key_O) ); + file.insertItem( new TQIconSet(p2), "&New", this, TQ_SLOT("news()"), new TQKeySequence(CTRL+Key_N) ); + file.insertItem( new TQIconSet(p3), "&Save", this, TQ_SLOT("save()"), new TQKeySequence(CTRL+Key_S) ); + file.insertItem( "&Close", this, TQ_SLOT("closeDoc()"), new TQKeySequence(CTRL+Key_W) ); file.insertSeparator(); file.insertItem( "&Print", print, CTRL+Key_P ); file.insertSeparator(); - file.insertItem( "E&xit", tqApp(), SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) ); + file.insertItem( "E&xit", tqApp(), TQ_SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) ); TQPopupMenu edit = new TQPopupMenu( this ); - int undoID = edit.insertItem( "&Undo", this, SLOT("undo()") ); - int redoID = edit.insertItem( "&Redo", this, SLOT("redo()") ); + int undoID = edit.insertItem( "&Undo", this, TQ_SLOT("undo()") ); + int redoID = edit.insertItem( "&Redo", this, TQ_SLOT("redo()") ); edit.setItemEnabled( undoID, false ); edit.setItemEnabled( redoID, false ); TQPopupMenu options = new TQPopupMenu( this ); options.insertTearOffHandle(); options.setCaption("Options"); - options.insertItem( "&Normal Font", this, SLOT("normal()") ); + options.insertItem( "&Normal Font", this, TQ_SLOT("normal()") ); options.insertSeparator(); options.polish(); // adjust system settings @@ -168,12 +168,12 @@ MenuExample( TQWidget parent, String name ) f.setBold( true ); // boldID = options.insertItem( new MyMenuItem( "&Bold", f ) ); options.setAccel( new TQKeySequence(CTRL+Key_B), boldID ); - options.connectItem( boldID, this, SLOT("bold()") ); + options.connectItem( boldID, this, TQ_SLOT("bold()") ); f = font(); f.setUnderline( true ); // underlineID = options.insertItem( new MyMenuItem( "&Underline", f ) ); options.setAccel( new TQKeySequence(CTRL+Key_U), underlineID ); - options.connectItem( underlineID, this, SLOT("underline()") ); + options.connectItem( underlineID, this, TQ_SLOT("underline()") ); isBold = false; isUnderline = false; @@ -181,8 +181,8 @@ MenuExample( TQWidget parent, String name ) TQPopupMenu help = new TQPopupMenu( this ); - help.insertItem( "&About", this, SLOT("about()"), new TQKeySequence(CTRL+Key_H) ); - help.insertItem( "About &Qt", this, SLOT("aboutTQt()") ); + help.insertItem( "&About", this, TQ_SLOT("about()"), new TQKeySequence(CTRL+Key_H) ); + help.insertItem( "About &Qt", this, TQ_SLOT("aboutTQt()") ); menu = new TQMenuBar( this ); menu.insertItem( "&File", file ); @@ -198,8 +198,8 @@ MenuExample( TQWidget parent, String name ) label.setLineWidth( 1 ); label.setAlignment( AlignCenter ); - connect( this, SIGNAL("explain(String)"), - label, SLOT("setText(String)") ); + connect( this, TQ_SIGNAL("explain(String)"), + label, TQ_SLOT("setText(String)") ); setMinimumSize( 100, 80 ); } |