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/cursor/CursorView.java | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'qtjava/javalib/examples/cursor') diff --git a/qtjava/javalib/examples/cursor/CursorView.java b/qtjava/javalib/examples/cursor/CursorView.java index 39eeb591..2b6d971c 100644 --- a/qtjava/javalib/examples/cursor/CursorView.java +++ b/qtjava/javalib/examples/cursor/CursorView.java @@ -14,7 +14,7 @@ import org.kde.qt.*; // The CursorView contains many labels with different cursors. // -class CursorView extends QWidget // cursor view +class CursorView extends TQWidget // cursor view { // cb_bits and cm_bits were generated by X bitmap program. @@ -98,31 +98,31 @@ public CursorView() // construct view { setCaption( "CursorView" ); // set window caption - QGridLayout grid = new QGridLayout( this, 5, 4, 20 ); - QLabel label; + TQGridLayout grid = new TQGridLayout( this, 5, 4, 20 ); + TQLabel label; int i=0; for ( int y=0; y<4; y++ ) { // create the small labels for ( int x=0; x<4; x++ ) { - label = new QLabel( this ); - label.setCursor( new QCursor( shapeList[i] ) ); + label = new TQLabel( this ); + label.setCursor( new TQCursor( shapeList[i] ) ); label.setText( nameList[i] ); label.setAlignment( AlignCenter ); - label.setFrameStyle( QFrame.Box | QFrame.Raised ); + label.setFrameStyle( TQFrame.Box | TQFrame.Raised ); grid.addWidget( label, x, y ); i++; } } - QBitmap cb = new QBitmap( cb_width, cb_height, cb_bits, true ); - QBitmap cm = new QBitmap( cm_width, cm_height, cm_bits, true ); - QCursor custom = new QCursor( cb, cm ); // create bitmap cursor + TQBitmap cb = new TQBitmap( cb_width, cb_height, cb_bits, true ); + TQBitmap cm = new TQBitmap( cm_width, cm_height, cm_bits, true ); + TQCursor custom = new TQCursor( cb, cm ); // create bitmap cursor - label = new QLabel( this ); // create the big label + label = new TQLabel( this ); // create the big label label.setCursor( custom ); label.setText( "Custom bitmap cursor" ); label.setAlignment( AlignCenter ); - label.setFrameStyle( QFrame.Box | QFrame.Sunken ); + label.setFrameStyle( TQFrame.Box | TQFrame.Sunken ); grid.addMultiCellWidget( label, 4, 4, 0, 3 ); } @@ -134,7 +134,7 @@ public CursorView() // construct view public static void main( String[] args ) { - QApplication a = new QApplication( args ); // application object + TQApplication a = new TQApplication( args ); // application object CursorView v = new CursorView(); // cursor view a.setMainWidget( v ); v.setCaption("Qt Example - Cursors"); -- cgit v1.2.1