summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/demo/sql/ConnectDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/demo/sql/ConnectDialog.java')
-rw-r--r--qtjava/javalib/examples/demo/sql/ConnectDialog.java64
1 files changed, 32 insertions, 32 deletions
diff --git a/qtjava/javalib/examples/demo/sql/ConnectDialog.java b/qtjava/javalib/examples/demo/sql/ConnectDialog.java
index bbd17391..ad7c331b 100644
--- a/qtjava/javalib/examples/demo/sql/ConnectDialog.java
+++ b/qtjava/javalib/examples/demo/sql/ConnectDialog.java
@@ -8,22 +8,22 @@
****************************************************************************/
import org.kde.qt.*;
-public class ConnectDialog extends QDialog {
- QLineEdit editDatabase;
- QLabel TextLabel3;
- QLineEdit editPassword;
- QLabel TextLabel4;
- QLabel TextLabel4_2;
- QLabel TextLabel2;
- QLabel TextLabel5;
- QComboBox comboDriver;
- QLineEdit editHostname;
- QLineEdit editUsername;
- QPushButton PushButton1;
- QPushButton PushButton2;
-
- QGridLayout ConnectDialogLayout;
- QSpacerItem spacer;
+public class ConnectDialog extends TQDialog {
+ TQLineEdit editDatabase;
+ TQLabel TextLabel3;
+ TQLineEdit editPassword;
+ TQLabel TextLabel4;
+ TQLabel TextLabel4_2;
+ TQLabel TextLabel2;
+ TQLabel TextLabel5;
+ TQComboBox comboDriver;
+ TQLineEdit editHostname;
+ TQLineEdit editUsername;
+ TQPushButton PushButton1;
+ TQPushButton PushButton2;
+
+ TQGridLayout ConnectDialogLayout;
+ TQSpacerItem spacer;
/*
* Constructs a ConnectDialog which is a child of 'parent', with the
@@ -32,75 +32,75 @@ public class ConnectDialog extends QDialog {
* The dialog will by default be modeless, unless you set 'modal' to
* true to construct a modal dialog.
*/
-ConnectDialog( QWidget parent, String name, boolean modal, int fl )
+ConnectDialog( TQWidget parent, String name, boolean modal, int fl )
{
super( parent, name, modal, fl );
if ( name == null )
setName( "ConnectDialog" );
resize( 294, 207 );
setCaption( trUtf8( "Connect..." ) );
- ConnectDialogLayout = new QGridLayout( this );
+ ConnectDialogLayout = new TQGridLayout( this );
ConnectDialogLayout.setSpacing( 6 );
ConnectDialogLayout.setMargin( 11 );
- editDatabase = new QLineEdit( this, "editDatabase" );
+ editDatabase = new TQLineEdit( this, "editDatabase" );
ConnectDialogLayout.addMultiCellWidget( editDatabase, 1, 1, 2, 3 );
- TextLabel3 = new QLabel( this, "TextLabel3" );
+ TextLabel3 = new TQLabel( this, "TextLabel3" );
TextLabel3.setText( trUtf8( "Database Name:" ) );
ConnectDialogLayout.addMultiCellWidget( TextLabel3, 1, 1, 0, 1 );
- editPassword = new QLineEdit( this, "editPassword" );
- editPassword.setEchoMode( QLineEdit.Password );
+ editPassword = new TQLineEdit( this, "editPassword" );
+ editPassword.setEchoMode( TQLineEdit.Password );
ConnectDialogLayout.addMultiCellWidget( editPassword, 3, 3, 2, 3 );
- TextLabel4 = new QLabel( this, "TextLabel4" );
+ TextLabel4 = new TQLabel( this, "TextLabel4" );
TextLabel4.setText( trUtf8( "&Username:" ) );
ConnectDialogLayout.addMultiCellWidget( TextLabel4, 2, 2, 0, 1 );
- TextLabel4_2 = new QLabel( this, "TextLabel4_2" );
+ TextLabel4_2 = new TQLabel( this, "TextLabel4_2" );
TextLabel4_2.setText( trUtf8( "&Password:" ) );
ConnectDialogLayout.addMultiCellWidget( TextLabel4_2, 3, 3, 0, 1 );
- TextLabel2 = new QLabel( this, "TextLabel2" );
+ TextLabel2 = new TQLabel( this, "TextLabel2" );
TextLabel2.setText( trUtf8( "D&river" ) );
ConnectDialogLayout.addMultiCellWidget( TextLabel2, 0, 0, 0, 1 );
- TextLabel5 = new QLabel( this, "TextLabel5" );
+ TextLabel5 = new TQLabel( this, "TextLabel5" );
TextLabel5.setText( trUtf8( "&Hostname:" ) );
ConnectDialogLayout.addMultiCellWidget( TextLabel5, 4, 4, 0, 1 );
- comboDriver = new QComboBox( false, this, "comboDriver" );
+ comboDriver = new TQComboBox( false, this, "comboDriver" );
comboDriver.setEditable( true );
ConnectDialogLayout.addMultiCellWidget( comboDriver, 0, 0, 2, 3 );
- editHostname = new QLineEdit( this, "editHostname" );
+ editHostname = new TQLineEdit( this, "editHostname" );
ConnectDialogLayout.addMultiCellWidget( editHostname, 4, 4, 2, 3 );
- editUsername = new QLineEdit( this, "editUsername" );
+ editUsername = new TQLineEdit( this, "editUsername" );
ConnectDialogLayout.addMultiCellWidget( editUsername, 2, 2, 2, 3 );
- PushButton1 = new QPushButton( this, "PushButton1" );
+ PushButton1 = new TQPushButton( this, "PushButton1" );
PushButton1.setText( trUtf8( "&OK" ) );
PushButton1.setDefault( true );
ConnectDialogLayout.addMultiCellWidget( PushButton1, 5, 5, 1, 2 );
- PushButton2 = new QPushButton( this, "PushButton2" );
+ PushButton2 = new TQPushButton( this, "PushButton2" );
PushButton2.setText( trUtf8( "&Cancel" ) );
ConnectDialogLayout.addWidget( PushButton2, 5, 3 );
- spacer = new QSpacerItem( 20, 20, QSizePolicy.Expanding, QSizePolicy.Minimum );
+ spacer = new TQSpacerItem( 20, 20, TQSizePolicy.Expanding, TQSizePolicy.Minimum );
ConnectDialogLayout.addItem( spacer, 5, 0 );