summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/addressbook/ABMainWindow.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/addressbook/ABMainWindow.java')
-rw-r--r--qtjava/javalib/examples/addressbook/ABMainWindow.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/qtjava/javalib/examples/addressbook/ABMainWindow.java b/qtjava/javalib/examples/addressbook/ABMainWindow.java
index 588098f4..c4949289 100644
--- a/qtjava/javalib/examples/addressbook/ABMainWindow.java
+++ b/qtjava/javalib/examples/addressbook/ABMainWindow.java
@@ -9,9 +9,9 @@
*****************************************************************************/
import org.kde.qt.*;
-class ABMainWindow extends QMainWindow
+class ABMainWindow extends TQMainWindow
{
- protected QToolBar fileTools;
+ protected TQToolBar fileTools;
protected String filename;
protected ABCentralWidget view;
@@ -27,24 +27,24 @@ public ABMainWindow()
public void setupMenuBar()
{
- QPopupMenu file = new QPopupMenu( this );
+ TQPopupMenu file = new TQPopupMenu( this );
menuBar().insertItem( "&File", file );
- file.insertItem( "New", this, SLOT( "fileNew()" ), new QKeySequence(CTRL + Key_N) );
- file.insertItem( new QIconSet(new QPixmap( "fileopen.xpm" )), "Open", this, SLOT( "fileOpen()" ), new QKeySequence(CTRL + Key_O) );
+ 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.insertSeparator();
- file.insertItem( new QIconSet(new QPixmap( "filesave.xpm" )), "Save", this, SLOT( "fileSave()" ), new QKeySequence(CTRL + Key_S) );
+ 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.insertSeparator();
- file.insertItem( new QIconSet(new QPixmap( "fileprint.xpm" )), "Print...", this, SLOT( "filePrint()" ), new QKeySequence(CTRL + Key_P) );
+ file.insertItem( new TQIconSet(new TQPixmap( "fileprint.xpm" )), "Print...", this, SLOT( "filePrint()" ), new TQKeySequence(CTRL + Key_P) );
file.insertSeparator();
- file.insertItem( "Close", this, SLOT( "closeWindow()" ), new QKeySequence(CTRL + Key_W) );
- file.insertItem( "Quit", qApp(), SLOT( "quit()" ), new QKeySequence(CTRL + Key_Q) );
+ file.insertItem( "Close", this, SLOT( "closeWindow()" ), new TQKeySequence(CTRL + Key_W) );
+ file.insertItem( "Quit", qApp(), SLOT( "quit()" ), new TQKeySequence(CTRL + Key_Q) );
}
public void setupFileTools()
{
- //fileTools = new QToolBar( this, "file operations" );
+ //fileTools = new TQToolBar( this, "file operations" );
}
public void setupStatusBar()
@@ -69,7 +69,7 @@ public void fileNew()
public void fileOpen()
{
- String fn = QFileDialog.getOpenFileName( "", "", this );
+ String fn = TQFileDialog.getOpenFileName( "", "", this );
if ( !fn.equals("") ) {
filename = fn;
view.load( filename );
@@ -88,7 +88,7 @@ public void fileSave()
public void fileSaveAs()
{
- String fn = QFileDialog.getSaveFileName( "", "", this );
+ String fn = TQFileDialog.getSaveFileName( "", "", this );
if ( !fn.equals("") ) {
filename = fn;
fileSave();