diff options
Diffstat (limited to 'qtjava/javalib/examples/addressbook')
-rw-r--r-- | qtjava/javalib/examples/addressbook/ABCentralWidget.java | 16 | ||||
-rw-r--r-- | qtjava/javalib/examples/addressbook/ABMainWindow.java | 14 | ||||
-rw-r--r-- | qtjava/javalib/examples/addressbook/Main.java | 2 |
3 files changed, 16 insertions, 16 deletions
diff --git a/qtjava/javalib/examples/addressbook/ABCentralWidget.java b/qtjava/javalib/examples/addressbook/ABCentralWidget.java index d299f2f9..f579302a 100644 --- a/qtjava/javalib/examples/addressbook/ABCentralWidget.java +++ b/qtjava/javalib/examples/addressbook/ABCentralWidget.java @@ -106,7 +106,7 @@ public void setupTabWidget() add = new TQPushButton( "A&dd", input ); add.resize( add.sizeHint() ); grid1.addWidget( add, 0, 4 ); - connect( add, SIGNAL( "clicked()" ), this, SLOT( "addEntry()" ) ); + connect( add, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "addEntry()" ) ); iFirstName = new TQLineEdit( input ); iFirstName.resize( iFirstName.sizeHint() ); @@ -131,7 +131,7 @@ public void setupTabWidget() change = new TQPushButton( "&Change", input ); change.resize( change.sizeHint() ); grid1.addWidget( change, 1, 4 ); - connect( change, SIGNAL( "clicked()" ), this, SLOT( "changeEntry()" ) ); + connect( change, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "changeEntry()" ) ); tabWidget.addTab( input, "&Add/Change Entry" ); @@ -143,22 +143,22 @@ public void setupTabWidget() cFirstName = new TQCheckBox( "First &Name", search ); cFirstName.resize( cFirstName.sizeHint() ); grid2.addWidget( cFirstName, 0, 0 ); - connect( cFirstName, SIGNAL( "clicked()" ), this, SLOT( "toggleFirstName()" ) ); + connect( cFirstName, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "toggleFirstName()" ) ); cLastName = new TQCheckBox( "&Last Name", search ); cLastName.resize( cLastName.sizeHint() ); grid2.addWidget( cLastName, 0, 1 ); - connect( cLastName, SIGNAL( "clicked()" ), this, SLOT( "toggleLastName()" ) ); + connect( cLastName, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "toggleLastName()" ) ); cAddress = new TQCheckBox( "Add&ress", search ); cAddress.resize( cAddress.sizeHint() ); grid2.addWidget( cAddress, 0, 2 ); - connect( cAddress, SIGNAL( "clicked()" ), this, SLOT( "toggleAddress()" ) ); + connect( cAddress, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "toggleAddress()" ) ); cEMail = new TQCheckBox( "&E-Mail", search ); cEMail.resize( cEMail.sizeHint() ); grid2.addWidget( cEMail, 0, 3 ); - connect( cEMail, SIGNAL( "clicked()" ), this, SLOT( "toggleEMail()" ) ); + connect( cEMail, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "toggleEMail()" ) ); sFirstName = new TQLineEdit( search ); sFirstName.resize( sFirstName.sizeHint() ); @@ -179,7 +179,7 @@ public void setupTabWidget() find = new TQPushButton( "F&ind", search ); find.resize( find.sizeHint() ); grid2.addWidget( find, 1, 4 ); - connect( find, SIGNAL( "clicked()" ), this, SLOT( "findEntries()" ) ); + connect( find, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "findEntries()" ) ); cFirstName.setChecked( true ); sFirstName.setEnabled( true ); @@ -202,7 +202,7 @@ public void setupListView() listView.setSelectionMode( TQListView.Extended ); - connect( listView, SIGNAL( "clicked( TQListViewItem )" ), this, SLOT( "itemSelected( TQListViewItem )" ) ); + connect( listView, TQ_SIGNAL( "clicked( TQListViewItem )" ), this, TQ_SLOT( "itemSelected( TQListViewItem )" ) ); mainGrid.addWidget( listView, 1, 0 ); listView.setAllColumnsShowFocus( true ); diff --git a/qtjava/javalib/examples/addressbook/ABMainWindow.java b/qtjava/javalib/examples/addressbook/ABMainWindow.java index 2574dbff..c3ebb401 100644 --- a/qtjava/javalib/examples/addressbook/ABMainWindow.java +++ b/qtjava/javalib/examples/addressbook/ABMainWindow.java @@ -30,16 +30,16 @@ public void setupMenuBar() TQPopupMenu file = new TQPopupMenu( this ); menuBar().insertItem( "&File", file ); - file.insertItem( "New", this, SLOT( "fileNew()" ), new TQKeySequence(CTRL + Key_N) ); - file.insertItem( new TQIconSet(new TQPixmap( "fileopen.xpm" )), "Open", this, SLOT( "fileOpen()" ), new TQKeySequence(CTRL + Key_O) ); + file.insertItem( "New", this, TQ_SLOT( "fileNew()" ), new TQKeySequence(CTRL + Key_N) ); + file.insertItem( new TQIconSet(new TQPixmap( "fileopen.xpm" )), "Open", this, TQ_SLOT( "fileOpen()" ), new TQKeySequence(CTRL + Key_O) ); file.insertSeparator(); - file.insertItem( new TQIconSet(new TQPixmap( "filesave.xpm" )), "Save", this, SLOT( "fileSave()" ), new TQKeySequence(CTRL + Key_S) ); - file.insertItem( "Save As...", this, SLOT( "fileSaveAs()" ) ); + file.insertItem( new TQIconSet(new TQPixmap( "filesave.xpm" )), "Save", this, TQ_SLOT( "fileSave()" ), new TQKeySequence(CTRL + Key_S) ); + file.insertItem( "Save As...", this, TQ_SLOT( "fileSaveAs()" ) ); file.insertSeparator(); - file.insertItem( new TQIconSet(new TQPixmap( "fileprint.xpm" )), "Print...", this, SLOT( "filePrint()" ), new TQKeySequence(CTRL + Key_P) ); + file.insertItem( new TQIconSet(new TQPixmap( "fileprint.xpm" )), "Print...", this, TQ_SLOT( "filePrint()" ), new TQKeySequence(CTRL + Key_P) ); file.insertSeparator(); - file.insertItem( "Close", this, SLOT( "closeWindow()" ), new TQKeySequence(CTRL + Key_W) ); - file.insertItem( "Quit", tqApp(), SLOT( "quit()" ), new TQKeySequence(CTRL + Key_Q) ); + file.insertItem( "Close", this, TQ_SLOT( "closeWindow()" ), new TQKeySequence(CTRL + Key_W) ); + file.insertItem( "Quit", tqApp(), TQ_SLOT( "quit()" ), new TQKeySequence(CTRL + Key_Q) ); } public void setupFileTools() diff --git a/qtjava/javalib/examples/addressbook/Main.java b/qtjava/javalib/examples/addressbook/Main.java index 696ec40d..d393a4fe 100644 --- a/qtjava/javalib/examples/addressbook/Main.java +++ b/qtjava/javalib/examples/addressbook/Main.java @@ -20,7 +20,7 @@ public static void main( String[] args ) a.setMainWidget( mw ); mw.show(); - a.connect( a, Qt.SIGNAL( "lastWindowClosed()" ), a, Qt.SLOT( "quit()" ) ); + a.connect( a, Qt.TQ_SIGNAL( "lastWindowClosed()" ), a, Qt.TQ_SLOT( "quit()" ) ); int result = a.exec(); return; } |