summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/showimg/ImageTextEditor.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/showimg/ImageTextEditor.java')
-rw-r--r--qtjava/javalib/examples/showimg/ImageTextEditor.java56
1 files changed, 28 insertions, 28 deletions
diff --git a/qtjava/javalib/examples/showimg/ImageTextEditor.java b/qtjava/javalib/examples/showimg/ImageTextEditor.java
index 6c11c1a4..691bdf5b 100644
--- a/qtjava/javalib/examples/showimg/ImageTextEditor.java
+++ b/qtjava/javalib/examples/showimg/ImageTextEditor.java
@@ -11,48 +11,48 @@
import org.kde.qt.*;
-class ImageTextEditor extends QDialog
+class ImageTextEditor extends TQDialog
{
-private QImage image;
-private QComboBox languages;
-private QComboBox keys;
-private QMultiLineEdit text;
-private QLineEdit newlang;
-private QLineEdit newkey;
+private TQImage image;
+private TQComboBox languages;
+private TQComboBox keys;
+private TQMultiLineEdit text;
+private TQLineEdit newlang;
+private TQLineEdit newkey;
-ImageTextEditor( QImage i, QWidget parent )
+ImageTextEditor( TQImage i, TQWidget parent )
{
this(i, parent, null, 0);
}
-ImageTextEditor( QImage i, QWidget parent, String name, int f )
+ImageTextEditor( TQImage i, TQWidget parent, String name, int f )
{
super(parent,name,true,f);
image = i;
- QVBoxLayout vbox = new QVBoxLayout(this,8);
+ TQVBoxLayout vbox = new TQVBoxLayout(this,8);
vbox.setAutoAdd(true);
- QGrid controls = new QGrid(3,QGrid.Horizontal,this);
+ TQGrid controls = new TQGrid(3,TQGrid.Horizontal,this);
controls.setSpacing(8);
- QLabel l;
- l=new QLabel("Language",controls); l.setAlignment(AlignCenter);
- l=new QLabel("Key",controls); l.setAlignment(AlignCenter);
- new QLabel("",controls); // dummy
- languages = new QComboBox(controls);
- keys = new QComboBox(controls);
- QPushButton remove = new QPushButton("Remove",controls);
-
- newlang = new QLineEdit(controls);
- newkey = new QLineEdit(controls);
- QPushButton add = new QPushButton("Add",controls);
-
- text = new QMultiLineEdit(this);
-
- QHBox hbox = new QHBox(this);
- QPushButton cancel = new QPushButton("Cancel",hbox);
- QPushButton ok = new QPushButton("OK",hbox);
+ TQLabel l;
+ l=new TQLabel("Language",controls); l.setAlignment(AlignCenter);
+ l=new TQLabel("Key",controls); l.setAlignment(AlignCenter);
+ new TQLabel("",controls); // dummy
+ languages = new TQComboBox(controls);
+ keys = new TQComboBox(controls);
+ TQPushButton remove = new TQPushButton("Remove",controls);
+
+ newlang = new TQLineEdit(controls);
+ newkey = new TQLineEdit(controls);
+ TQPushButton add = new TQPushButton("Add",controls);
+
+ text = new TQMultiLineEdit(this);
+
+ TQHBox hbox = new TQHBox(this);
+ TQPushButton cancel = new TQPushButton("Cancel",hbox);
+ TQPushButton ok = new TQPushButton("OK",hbox);
connect(add,SIGNAL("clicked()"),
this,SLOT("addText()"));