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