summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/table/small-table-demo/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/table/small-table-demo/Main.java')
-rw-r--r--qtjava/javalib/examples/table/small-table-demo/Main.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/qtjava/javalib/examples/table/small-table-demo/Main.java b/qtjava/javalib/examples/table/small-table-demo/Main.java
index a3e38843..f848adc2 100644
--- a/qtjava/javalib/examples/table/small-table-demo/Main.java
+++ b/qtjava/javalib/examples/table/small-table-demo/Main.java
@@ -10,7 +10,7 @@
import org.kde.qt.*;
-public class Main extends QObject {
+public class Main extends TQObject {
// Qt logo: static String qtlogo_xpm[]
/* XPM */
@@ -146,30 +146,30 @@ static int numCols = 10;
public static void main(String[] args)
{
- QApplication app = new QApplication( args );
+ TQApplication app = new TQApplication( args );
- QTable table = new QTable( numRows, numCols );
+ TQTable table = new TQTable( numRows, numCols );
- QHeader header = table.horizontalHeader();
+ TQHeader header = table.horizontalHeader();
header.setLabel( 0, "Tiny", 40 );
header.setLabel( 1, "Checkboxes" );
header.setLabel( 5, "Combos" );
header.setMovingEnabled(true);
- QImage img = new QImage( qtlogo_xpm );
- QPixmap pix = new QPixmap(img.scaleHeight( table.rowHeight(3) ));
+ TQImage img = new TQImage( qtlogo_xpm );
+ TQPixmap pix = new TQPixmap(img.scaleHeight( table.rowHeight(3) ));
table.setPixmap( 3, 2, pix );
table.setText( 3, 2, "A Pixmap" );
String[] comboEntries = { "one", "two", "three", "four" };
for ( int i = 0; i < numRows; ++i ){
- QComboTableItem item = new QComboTableItem( table, comboEntries, false );
+ TQComboTableItem item = new TQComboTableItem( table, comboEntries, false );
item.setCurrentItem( i % 4 );
table.setItem( i, 5, item );
}
for ( int j = 0; j < numRows; ++j )
- table.setItem( j, 1, new QCheckTableItem( table, "Check me" ) );
+ table.setItem( j, 1, new TQCheckTableItem( table, "Check me" ) );
app.setMainWidget( table );
table.show();