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/table/small-table-demo/Main.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'qtjava/javalib/examples/table/small-table-demo/Main.java') 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(); -- cgit v1.2.3