summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/richtext/MyRichText.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/richtext/MyRichText.java
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
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 );