diff options
author | Timothy Pearson <[email protected]> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtjava/javalib/examples/cursor | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'qtjava/javalib/examples/cursor')
-rw-r--r-- | qtjava/javalib/examples/cursor/CursorView.java | 24 |
1 files changed, 12 insertions, 12 deletions
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"); |