summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/iconview
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-05 15:55:57 -0600
committerTimothy Pearson <[email protected]>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtjava/javalib/examples/iconview
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtjava/javalib/examples/iconview')
-rw-r--r--qtjava/javalib/examples/iconview/ListenDND.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/qtjava/javalib/examples/iconview/ListenDND.java b/qtjava/javalib/examples/iconview/ListenDND.java
index 59521a55..e6bec795 100644
--- a/qtjava/javalib/examples/iconview/ListenDND.java
+++ b/qtjava/javalib/examples/iconview/ListenDND.java
@@ -10,13 +10,13 @@
import org.kde.qt.*;
-class ListenDND extends QObject
+class ListenDND extends TQObject
{
-public ListenDND( QWidget w )
+public ListenDND( TQWidget w )
{view = w;}
- void dropped( QDropEvent mime ) {
+ void dropped( TQDropEvent mime ) {
qDebug( "Dropped Mimesource {0} into the view {1}", new Object[] { mime, view } );
qDebug( " Formats:" );
int i = 0;
@@ -31,27 +31,27 @@ public ListenDND( QWidget w )
qDebug( "All selected items were moved to another widget" );
}
-protected QWidget view;
+protected TQWidget view;
public static void main( String[] args )
{
- QApplication a = new QApplication( args );
+ TQApplication a = new TQApplication( args );
- QIconView qiconview = new QIconView();
- qiconview.setSelectionMode( QIconView.Extended );
+ TQIconView qiconview = new TQIconView();
+ qiconview.setSelectionMode( TQIconView.Extended );
for ( int i = 0; i < 3000; i++ ) {
- QIconViewItem item = new QIconViewItem( qiconview, "Item " + (i + 1) );
+ TQIconViewItem item = new TQIconViewItem( qiconview, "Item " + (i + 1) );
item.setRenameEnabled( true );
}
qiconview.setCaption( "Qt Example - Iconview" );
ListenDND listen_dnd = new ListenDND( qiconview );
- QObject.connect( qiconview, SIGNAL(" dropped( QDropEvent , ArrayList )"),
- listen_dnd, SLOT(" dropped( QDropEvent )") );
- QObject.connect( qiconview, SIGNAL(" moved()"), listen_dnd, SLOT(" moved()") );
+ TQObject.connect( qiconview, SIGNAL(" dropped( TQDropEvent , ArrayList )"),
+ listen_dnd, SLOT(" dropped( TQDropEvent )") );
+ TQObject.connect( qiconview, SIGNAL(" moved()"), listen_dnd, SLOT(" moved()") );
a.setMainWidget( qiconview );
qiconview.show();