summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/dragdrop/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/dragdrop/Main.java')
-rw-r--r--qtjava/javalib/examples/dragdrop/Main.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/qtjava/javalib/examples/dragdrop/Main.java b/qtjava/javalib/examples/dragdrop/Main.java
index 3297aaec..7ce5ff19 100644
--- a/qtjava/javalib/examples/dragdrop/Main.java
+++ b/qtjava/javalib/examples/dragdrop/Main.java
@@ -15,40 +15,40 @@ import org.kde.qt.*;
public class Main {
-static DropSite addStuff( QWidget parent, boolean image )
+static DropSite addStuff( TQWidget parent, boolean image )
{
return addStuff(parent, image, false);
}
-static DropSite addStuff( QWidget parent, boolean image, boolean secret )
+static DropSite addStuff( TQWidget parent, boolean image, boolean secret )
{
- QVBoxLayout tll = new QVBoxLayout( parent, 10 );
+ TQVBoxLayout tll = new TQVBoxLayout( parent, 10 );
DropSite d = new DropSite( parent );
- d.setFrameStyle( QFrame.Sunken + QFrame.WinPanel );
+ d.setFrameStyle( TQFrame.Sunken + TQFrame.WinPanel );
tll.addWidget( d );
if ( image ) {
- QPixmap stuff = new QPixmap();
+ TQPixmap stuff = new TQPixmap();
if ( !stuff.load( "trolltech.bmp" ) ) {
- stuff = new QPixmap(20,20);
+ stuff = new TQPixmap(20,20);
stuff.fill(Qt.green());
}
d.setPixmap( stuff );
} else {
d.setText("Drag and Drop");
}
- d.setFont(new QFont("Helvetica",18));
+ d.setFont(new TQFont("Helvetica",18));
if ( secret ) {
SecretSource s = new SecretSource( (byte) 42, parent );
tll.addWidget( s );
d.setSecretSource( s);
}
- QLabel format = new QLabel( "\n\n\n\nNone\n\n\n\n", parent );
+ TQLabel format = new TQLabel( "\n\n\n\nNone\n\n\n\n", parent );
tll.addWidget( format );
tll.activate();
parent.resize( parent.sizeHint() );
- QObject.connect( d, Qt.SIGNAL("message(String)"),
+ TQObject.connect( d, Qt.SIGNAL("message(String)"),
format, Qt.SLOT("setText(String)") );
return d;
}
@@ -58,24 +58,24 @@ static DropSite addStuff( QWidget parent, boolean image, boolean secret )
public static void main( String[] args )
{
- QApplication a = new QApplication( args );
+ TQApplication a = new TQApplication( args );
- QWidget mw = new QWidget();
+ TQWidget mw = new TQWidget();
DropSite d1 = addStuff( mw, true );
mw.setCaption( "Qt Example - Drag and Drop" );
mw.show();
- QWidget mw2 = new QWidget();
+ TQWidget mw2 = new TQWidget();
DropSite d2 = addStuff( mw2, false );
mw2.setCaption( "Qt Example - Drag and Drop" );
mw2.show();
- QWidget mw3 = new QWidget();
+ TQWidget mw3 = new TQWidget();
DropSite d3 = addStuff( mw3, true, true );
mw3.setCaption( "Qt Example - Drag and Drop" );
mw3.show();
- QObject.connect(Qt.qApp(),Qt.SIGNAL("lastWindowClosed()"),Qt.qApp(),Qt.SLOT("quit()"));
+ TQObject.connect(Qt.qApp(),Qt.SIGNAL("lastWindowClosed()"),Qt.qApp(),Qt.SLOT("quit()"));
a.exec();
return;
}