summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/iconview
diff options
context:
space:
mode:
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();