summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/test
diff options
context:
space:
mode:
Diffstat (limited to 'tdejava/koala/test')
-rw-r--r--tdejava/koala/test/kbase/KBase.java28
-rw-r--r--tdejava/koala/test/kcombobox/KComboBoxTest.java2
-rw-r--r--tdejava/koala/test/khelpers/KHelpers.java6
-rw-r--r--tdejava/koala/test/kmenu/KdeMenuSample.java6
-rw-r--r--tdejava/koala/test/simplebrowser/KSimpleBrowser.java4
-rw-r--r--tdejava/koala/test/tdeioslave/KioslaveTest.java42
6 files changed, 44 insertions, 44 deletions
diff --git a/tdejava/koala/test/kbase/KBase.java b/tdejava/koala/test/kbase/KBase.java
index e556adfc..af9e83e7 100644
--- a/tdejava/koala/test/kbase/KBase.java
+++ b/tdejava/koala/test/kbase/KBase.java
@@ -84,22 +84,22 @@ public KBase()
/** initializes the TDEActions of the application */
protected void initActions()
{
- fileNewWindow = new TDEAction(tr("New &Window"), "", new TDEShortcut(), this, SLOT("slotFileNewWindow()"), actionCollection(),"file_new_window");
- fileNew = KStdAction.openNew(this, SLOT("slotFileNew()"), actionCollection());
- fileOpen = KStdAction.open(this, SLOT("slotFileOpen()"), actionCollection());
- fileOpenRecent = (TDERecentFilesAction) KStdAction.openRecent(this, SLOT("slotFileOpenRecent(KURL)"), actionCollection());
- fileSave = KStdAction.save(this, SLOT("slotFileSave()"), actionCollection());
- fileSaveAs = KStdAction.saveAs(this, SLOT("slotFileSaveAs()"), actionCollection());
+ fileNewWindow = new TDEAction(tr("New &Window"), "", new TDEShortcut(), this, TQ_SLOT("slotFileNewWindow()"), actionCollection(),"file_new_window");
+ fileNew = KStdAction.openNew(this, TQ_SLOT("slotFileNew()"), actionCollection());
+ fileOpen = KStdAction.open(this, TQ_SLOT("slotFileOpen()"), actionCollection());
+ fileOpenRecent = (TDERecentFilesAction) KStdAction.openRecent(this, TQ_SLOT("slotFileOpenRecent(KURL)"), actionCollection());
+ fileSave = KStdAction.save(this, TQ_SLOT("slotFileSave()"), actionCollection());
+ fileSaveAs = KStdAction.saveAs(this, TQ_SLOT("slotFileSaveAs()"), actionCollection());
// this one crashes for me...
-// fileClose = KStdAction.close(this, SLOT(slotFileClose()), actionCollection());
- filePrint = KStdAction.print(this, SLOT("slotFilePrint()"), actionCollection());
- fileQuit = KStdAction.quit(this, SLOT("slotFileQuit()"), actionCollection());
- editCut = KStdAction.cut(this, SLOT("slotEditCut()"), actionCollection());
- editCopy = KStdAction.copy(this, SLOT("slotEditCopy()"), actionCollection());
- editPaste = KStdAction.paste(this, SLOT("slotEditPaste()"), actionCollection());
+// fileClose = KStdAction.close(this, TQ_SLOT(slotFileClose()), actionCollection());
+ filePrint = KStdAction.print(this, TQ_SLOT("slotFilePrint()"), actionCollection());
+ fileQuit = KStdAction.quit(this, TQ_SLOT("slotFileQuit()"), actionCollection());
+ editCut = KStdAction.cut(this, TQ_SLOT("slotEditCut()"), actionCollection());
+ editCopy = KStdAction.copy(this, TQ_SLOT("slotEditCopy()"), actionCollection());
+ editPaste = KStdAction.paste(this, TQ_SLOT("slotEditPaste()"), actionCollection());
createStandardStatusBarAction();
-// viewToolBar = KStdAction.showToolbar(this, SLOT("slotViewToolBar()"), actionCollection());
- viewStatusBar = KStdAction.showStatusbar(this, SLOT("slotViewStatusBar()"), actionCollection());
+// viewToolBar = KStdAction.showToolbar(this, TQ_SLOT("slotViewToolBar()"), actionCollection());
+ viewStatusBar = KStdAction.showStatusbar(this, TQ_SLOT("slotViewStatusBar()"), actionCollection());
fileNewWindow.setToolTip(tr("Opens a new application window"));
fileNew.setToolTip(tr("Creates a new document"));
diff --git a/tdejava/koala/test/kcombobox/KComboBoxTest.java b/tdejava/koala/test/kcombobox/KComboBoxTest.java
index 7204b377..a37ddb23 100644
--- a/tdejava/koala/test/kcombobox/KComboBoxTest.java
+++ b/tdejava/koala/test/kcombobox/KComboBoxTest.java
@@ -93,7 +93,7 @@ import java.util.*;
// Create an exit button
TQPushButton push = new TQPushButton( "E&xit", w );
- TQObject.connect( push, Qt.SIGNAL("clicked()"), app, Qt.SLOT("closeAllWindows()" ) );
+ TQObject.connect( push, Qt.TQ_SIGNAL("clicked()"), app, Qt.TQ_SLOT("closeAllWindows()" ) );
// Insert the widgets into the layout manager.
vbox.addWidget( lblrw );
diff --git a/tdejava/koala/test/khelpers/KHelpers.java b/tdejava/koala/test/khelpers/KHelpers.java
index fec92eb3..08444f49 100644
--- a/tdejava/koala/test/khelpers/KHelpers.java
+++ b/tdejava/koala/test/khelpers/KHelpers.java
@@ -41,9 +41,9 @@ public class KHelpers extends TDEMainWindow {
idfilenew = file.insertItem("&New");
idfileopen = file.insertItem("&Open...");
idfilesave = file.insertItem("&Save");
- idfilequit = file.insertItem("&Quit", kapp, SLOT("closeAllWindows()"));
+ idfilequit = file.insertItem("&Quit", kapp, TQ_SLOT("closeAllWindows()"));
- connect ( file, SIGNAL( "highlighted(int)"), this, SLOT( "slotMenuEntryHelp (int)"));
+ connect ( file, TQ_SIGNAL( "highlighted(int)"), this, TQ_SLOT( "slotMenuEntryHelp (int)"));
menuBar().insertItem("&File",file);
@@ -53,7 +53,7 @@ public class KHelpers extends TDEMainWindow {
"that your application can provide help to a user");
help.insertSeparator();
- help.insertItem("Help on a special topic", this, SLOT("slotSpecialHelp()"));
+ help.insertItem("Help on a special topic", this, TQ_SLOT("slotSpecialHelp()"));
menuBar().insertItem("&Help",help);
diff --git a/tdejava/koala/test/kmenu/KdeMenuSample.java b/tdejava/koala/test/kmenu/KdeMenuSample.java
index ccd46bf5..0db96fca 100644
--- a/tdejava/koala/test/kmenu/KdeMenuSample.java
+++ b/tdejava/koala/test/kmenu/KdeMenuSample.java
@@ -57,9 +57,9 @@ public class KdeMenuSample extends TDEMainWindow {
*/
private TQPopupMenu createFileMenu() {
TQPopupMenu fileMenu = new TQPopupMenu(this);
- fileMenu.insertItem("&Open",this,this.SLOT("fileOpen()"));
- fileMenu.insertItem("&Save",this,this.SLOT("fileSave()"));
- fileMenu.insertItem("&Quit",kApp,kApp.SLOT("quit()"));
+ fileMenu.insertItem("&Open",this,this.TQ_SLOT("fileOpen()"));
+ fileMenu.insertItem("&Save",this,this.TQ_SLOT("fileSave()"));
+ fileMenu.insertItem("&Quit",kApp,kApp.TQ_SLOT("quit()"));
return fileMenu;
}
diff --git a/tdejava/koala/test/simplebrowser/KSimpleBrowser.java b/tdejava/koala/test/simplebrowser/KSimpleBrowser.java
index 83964a0f..c798cd6d 100644
--- a/tdejava/koala/test/simplebrowser/KSimpleBrowser.java
+++ b/tdejava/koala/test/simplebrowser/KSimpleBrowser.java
@@ -29,8 +29,8 @@ public class KSimpleBrowser extends TDEMainWindow {
super(null,name,0);
- toolBar().insertLined( "", URLLined, SIGNAL("returnPressed()"),
- this, SLOT ("slotNewURL()"));
+ toolBar().insertLined( "", URLLined, TQ_SIGNAL("returnPressed()"),
+ this, TQ_SLOT ("slotNewURL()"));
toolBar().setItemAutoSized(URLLined);
diff --git a/tdejava/koala/test/tdeioslave/KioslaveTest.java b/tdejava/koala/test/tdeioslave/KioslaveTest.java
index 81a499c5..1fb97cf8 100644
--- a/tdejava/koala/test/tdeioslave/KioslaveTest.java
+++ b/tdejava/koala/test/tdeioslave/KioslaveTest.java
@@ -125,7 +125,7 @@ KioslaveTest( String src, String dest, int op, int pr )
// Operation groupbox & buttons
opButtons = new TQButtonGroup( "Operation", main_widget );
topLayout.addWidget( opButtons, 10 );
- connect( opButtons, SIGNAL("clicked(int)"), SLOT("changeOperation(int)") );
+ connect( opButtons, TQ_SIGNAL("clicked(int)"), TQ_SLOT("changeOperation(int)") );
TQBoxLayout hbLayout = new TQHBoxLayout( opButtons, 15 );
@@ -179,7 +179,7 @@ KioslaveTest( String src, String dest, int op, int pr )
// Progress groupbox & buttons
progressButtons = new TQButtonGroup( "Progress dialog mode", main_widget );
topLayout.addWidget( progressButtons, 10 );
- connect( progressButtons, SIGNAL("clicked(int)"), SLOT("changeProgressMode(int)") );
+ connect( progressButtons, TQ_SIGNAL("clicked(int)"), TQ_SLOT("changeProgressMode(int)") );
hbLayout = new TQHBoxLayout( progressButtons, 15 );
@@ -207,19 +207,19 @@ KioslaveTest( String src, String dest, int op, int pr )
pbStart = new TQPushButton( "&Start", main_widget );
pbStart.setFixedSize( pbStart.sizeHint() );
- connect( pbStart, SIGNAL("clicked()"), SLOT("startJob()") );
+ connect( pbStart, TQ_SIGNAL("clicked()"), TQ_SLOT("startJob()") );
hbLayout.addWidget( pbStart, 5 );
pbStop = new TQPushButton( "Sto&p", main_widget );
pbStop.setFixedSize( pbStop.sizeHint() );
pbStop.setEnabled( false );
- connect( pbStop, SIGNAL("clicked()"), SLOT("stopJob()") );
+ connect( pbStop, TQ_SIGNAL("clicked()"), TQ_SLOT("stopJob()") );
hbLayout.addWidget( pbStop, 5 );
// close button
close = new TQPushButton( "&Close", main_widget );
close.setFixedSize( close.sizeHint() );
- connect(close, SIGNAL("clicked()"), this, SLOT("slotQuit()"));
+ connect(close, TQ_SIGNAL("clicked()"), this, TQ_SLOT("slotQuit()"));
topLayout.addWidget( close, 5 );
@@ -228,10 +228,10 @@ KioslaveTest( String src, String dest, int op, int pr )
slave = null;
// slave = Scheduler.getConnectedSlave(new KURL("ftp://ftp.kde.org"));
- Scheduler.connect(SIGNAL("slaveConnected(Slave)"),
- this, SLOT("slotSlaveConnected()"));
- Scheduler.connect(SIGNAL("slaveError(Slave,int,String)"),
- this, SLOT("slotSlaveError()"));
+ Scheduler.connect(TQ_SIGNAL("slaveConnected(Slave)"),
+ this, TQ_SLOT("slotSlaveConnected()"));
+ Scheduler.connect(TQ_SIGNAL("slaveError(Slave,int,String)"),
+ this, TQ_SLOT("slotSlaveError()"));
}
@@ -304,14 +304,14 @@ void startJob() {
switch ( selectedOperation ) {
case List:
myJob = TDEIO.listDir( src );
-// connect(myJob, SIGNAL(" entries( Job, const TDEIO.UDSEntryList&)"),
-// SLOT(" slotEntries( TDEIO.Job, const TDEIO.UDSEntryList&)"));
+// connect(myJob, TQ_SIGNAL(" entries( Job, const TDEIO.UDSEntryList&)"),
+// TQ_SLOT(" slotEntries( TDEIO.Job, const TDEIO.UDSEntryList&)"));
break;
case ListRecursive:
myJob = TDEIO.listRecursive( src );
-// connect(myJob, SIGNAL(" entries( TDEIO.Job, const TDEIO.UDSEntryList&)"),
- // SLOT(" slotEntries( TDEIO.Job, const TDEIO.UDSEntryList&)"));
+// connect(myJob, TQ_SIGNAL(" entries( TDEIO.Job, const TDEIO.UDSEntryList&)"),
+ // TQ_SLOT(" slotEntries( TDEIO.Job, const TDEIO.UDSEntryList&)"));
break;
case Stat:
@@ -320,15 +320,15 @@ void startJob() {
case Get:
myJob = TDEIO.get( src, true );
- connect(myJob, SIGNAL("data( Job, byte[])"),
- SLOT("slotData( Job, byte[])"));
+ connect(myJob, TQ_SIGNAL("data( Job, byte[])"),
+ TQ_SLOT("slotData( Job, byte[])"));
break;
case Put:
putBuffer = 0;
myJob = TDEIO.put( src, -1, true, false);
- connect(myJob, SIGNAL("dataReq( Job, ByteArrayOutputStream)"),
- SLOT("slotDataReq( Job, ByteArrayOutputStream)"));
+ connect(myJob, TQ_SIGNAL("dataReq( Job, ByteArrayOutputStream)"),
+ TQ_SLOT("slotDataReq( Job, ByteArrayOutputStream)"));
break;
case Copy:
@@ -362,11 +362,11 @@ void startJob() {
job = myJob;
}
- connect( job, SIGNAL(" result( Job )"),
- SLOT(" slotResult( Job )") );
+ connect( job, TQ_SIGNAL(" result( Job )"),
+ TQ_SLOT(" slotResult( Job )") );
- connect( job, SIGNAL(" canceled( Job )"),
- SLOT(" slotResult( Job )") );
+ connect( job, TQ_SIGNAL(" canceled( Job )"),
+ TQ_SLOT(" slotResult( Job )") );
if (progressMode == ProgressStatus) {
statusProgress.setJob( job );