diff options
Diffstat (limited to 'qtjava/javalib/examples/splitter/Test.java')
-rw-r--r-- | qtjava/javalib/examples/splitter/Test.java | 20 |
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() ); |