From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- qtjava/javalib/examples/richtext/Main.java | 2 +- qtjava/javalib/examples/richtext/MyRichText.java | 24 +++++++++++------------ qtjava/javalib/examples/richtext/marble.png | Bin 26015 -> 26018 bytes 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'qtjava/javalib/examples/richtext') diff --git a/qtjava/javalib/examples/richtext/Main.java b/qtjava/javalib/examples/richtext/Main.java index 887afb2a..4a71fd2f 100644 --- a/qtjava/javalib/examples/richtext/Main.java +++ b/qtjava/javalib/examples/richtext/Main.java @@ -14,7 +14,7 @@ public class Main { public static void main(String[] args) { - QApplication a = new QApplication( args ); + TQApplication a = new TQApplication( args ); MyRichText richtext = new MyRichText(); richtext.resize( 450, 350 ); diff --git a/qtjava/javalib/examples/richtext/MyRichText.java b/qtjava/javalib/examples/richtext/MyRichText.java index 5234e3c8..79f6ac1e 100644 --- a/qtjava/javalib/examples/richtext/MyRichText.java +++ b/qtjava/javalib/examples/richtext/MyRichText.java @@ -11,11 +11,11 @@ import org.kde.qt.*; -class MyRichText extends QVBox +class MyRichText extends TQVBox { -protected QTextView view; -protected QPushButton bClose, bNext, bPrev; +protected TQTextView view; +protected TQPushButton bClose, bNext, bPrev; protected int num; @@ -82,29 +82,29 @@ MyRichText( ) this(null, null); } -MyRichText( QWidget parent, String name ) +MyRichText( TQWidget parent, String name ) { super( parent, name ); setMargin( 5 ); - view = new QTextView( this ); + view = new TQTextView( this ); view.setText( "This is a Test with italic stuff" ); - QBrush paper = new QBrush(); - paper.setPixmap( new QPixmap( "../richtext/marble.png" ) ); + TQBrush paper = new TQBrush(); + paper.setPixmap( new TQPixmap( "../richtext/marble.png" ) ); if ( paper.pixmap() != null ) view.setPaper( paper ); else - view.setPaper( new QBrush(white()) ); + view.setPaper( new TQBrush(white()) ); view.setText( sayings[0] ); view.setMinimumSize( 450, 250 ); - QHBox buttons = new QHBox( this ); + TQHBox buttons = new TQHBox( this ); buttons.setMargin( 5 ); - bClose = new QPushButton( "&Close", buttons ); - bPrev = new QPushButton( "<< &Prev", buttons ); - bNext = new QPushButton( "&Next >>", buttons ); + bClose = new TQPushButton( "&Close", buttons ); + bPrev = new TQPushButton( "<< &Prev", buttons ); + bNext = new TQPushButton( "&Next >>", buttons ); bPrev.setEnabled( false ); diff --git a/qtjava/javalib/examples/richtext/marble.png b/qtjava/javalib/examples/richtext/marble.png index 49ea3098..c81145c3 100644 Binary files a/qtjava/javalib/examples/richtext/marble.png and b/qtjava/javalib/examples/richtext/marble.png differ -- cgit v1.2.1