summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/splitter/Test.java
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtjava/javalib/examples/splitter/Test.java
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtjava/javalib/examples/splitter/Test.java')
-rw-r--r--qtjava/javalib/examples/splitter/Test.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/qtjava/javalib/examples/splitter/Test.java b/qtjava/javalib/examples/splitter/Test.java
index f174bc2b..99ff9aa8 100644
--- a/qtjava/javalib/examples/splitter/Test.java
+++ b/qtjava/javalib/examples/splitter/Test.java
@@ -12,23 +12,23 @@ import org.kde.qt.*;
-class Test extends QWidget {
+class Test extends TQWidget {
-Test(QWidget parent, String name)
+Test(TQWidget parent, String name)
{
this(parent, name, 0);
}
-Test(QWidget parent, String name, int f)
+Test(TQWidget parent, String name, int f)
{
super(parent, name, f);
}
-public void paintEvent(QPaintEvent e)
+public void paintEvent(TQPaintEvent e)
{
- QPainter p = new QPainter(this);
+ TQPainter p = new TQPainter(this);
p.setClipRect(e.rect());
int d = 1000; //large number
int x1 = 0;
@@ -53,11 +53,11 @@ public void paintEvent(QPaintEvent e)
public static void main(String[] args)
{
- QApplication a = new QApplication( args );
+ TQApplication a = new TQApplication( args );
- QSplitter s1 = new QSplitter( QSplitter.Vertical, null , "main" );
+ TQSplitter s1 = new TQSplitter( TQSplitter.Vertical, null , "main" );
- QSplitter s2 = new QSplitter( QSplitter.Horizontal, s1, "top" );
+ TQSplitter s2 = new TQSplitter( TQSplitter.Horizontal, s1, "top" );
Test t1 = new Test( s2, "topLeft" );
t1.setBackgroundColor( Qt.blue().light( 180 ) );
@@ -65,10 +65,10 @@ public static void main(String[] args)
Test t2 = new Test( s2, "topRight" );
t2.setBackgroundColor( Qt.green().light( 180 ) );
- s2.setResizeMode( t2, QSplitter.KeepSize );
+ s2.setResizeMode( t2, TQSplitter.KeepSize );
s2.moveToFirst( t2 );
- QSplitter s3 = new QSplitter( QSplitter.Horizontal, s1, "bottom" );
+ TQSplitter s3 = new TQSplitter( TQSplitter.Horizontal, s1, "bottom" );
Test t3 = new Test( s3, "bottomLeft" );
t3.setBackgroundColor( Qt.red() );