summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/richtext
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/richtext')
-rw-r--r--qtjava/javalib/examples/richtext/Main.java2
-rw-r--r--qtjava/javalib/examples/richtext/MyRichText.java24
-rw-r--r--qtjava/javalib/examples/richtext/marble.pngbin26015 -> 26018 bytes
3 files changed, 13 insertions, 13 deletions
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 <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 );
diff --git a/qtjava/javalib/examples/richtext/marble.png b/qtjava/javalib/examples/richtext/marble.png
index 49ea3098..c81145c3 100644
--- a/qtjava/javalib/examples/richtext/marble.png
+++ b/qtjava/javalib/examples/richtext/marble.png
Binary files differ