summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/richtext/MyRichText.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/richtext/MyRichText.java')
-rw-r--r--qtjava/javalib/examples/richtext/MyRichText.java24
1 files changed, 12 insertions, 12 deletions
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 <b>Test</b> with <i>italic</i> <u>stuff</u>" );
- 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 );