diff options
Diffstat (limited to 'qtjava/javalib/examples/biff')
-rw-r--r-- | qtjava/javalib/examples/biff/Biff.java | 22 | ||||
-rw-r--r-- | qtjava/javalib/examples/biff/Main.java | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/qtjava/javalib/examples/biff/Biff.java b/qtjava/javalib/examples/biff/Biff.java index b3107da4..4e807baf 100644 --- a/qtjava/javalib/examples/biff/Biff.java +++ b/qtjava/javalib/examples/biff/Biff.java @@ -10,11 +10,11 @@ import org.kde.qt.*; import java.util.Calendar; -class Biff extends QWidget +class Biff extends TQWidget { private Calendar lastModified; -private QPixmap hasNewMail = new QPixmap(); -private QPixmap noNewMail = new QPixmap(); +private TQPixmap hasNewMail = new TQPixmap(); +private TQPixmap noNewMail = new TQPixmap(); private String mailbox; private boolean gotMail; @@ -22,11 +22,11 @@ public Biff( ) { this(null, null); } -public Biff( QWidget parent, String name ) +public Biff( TQWidget parent, String name ) { super( parent, name, WType_Modal ); -// QFileInfo fi = new QFileInfo(System.getProperty("MAIL")); - QFileInfo fi = new QFileInfo(""); +// TQFileInfo fi = new TQFileInfo(System.getProperty("MAIL")); + TQFileInfo fi = new TQFileInfo(""); if ( !fi.exists() ) { String s = "/var/spool/mail/"; s += System.getProperty("user.name"); @@ -49,9 +49,9 @@ public Biff( QWidget parent, String name ) } -protected void timerEvent( QTimerEvent event ) +protected void timerEvent( TQTimerEvent event ) { - QFileInfo fi = new QFileInfo( mailbox ); + TQFileInfo fi = new TQFileInfo( mailbox ); boolean newState = ( fi.lastModified() != lastModified && fi.lastModified().after( fi.lastRead() ) ); if ( newState != gotMail ) { @@ -63,7 +63,7 @@ protected void timerEvent( QTimerEvent event ) } -protected void paintEvent( QPaintEvent event ) +protected void paintEvent( TQPaintEvent event ) { if ( gotMail ) bitBlt( this, 0, 0, hasNewMail ); @@ -72,9 +72,9 @@ protected void paintEvent( QPaintEvent event ) } -protected void mousePressEvent( QMouseEvent event ) +protected void mousePressEvent( TQMouseEvent event ) { - QFileInfo fi = new QFileInfo( mailbox ); + TQFileInfo fi = new TQFileInfo( mailbox ); lastModified = fi.lastModified(); } } diff --git a/qtjava/javalib/examples/biff/Main.java b/qtjava/javalib/examples/biff/Main.java index abf20598..d70881e7 100644 --- a/qtjava/javalib/examples/biff/Main.java +++ b/qtjava/javalib/examples/biff/Main.java @@ -15,7 +15,7 @@ public class Main { public static void main( String[] args ) { - QApplication a = new QApplication( args ); + TQApplication a = new TQApplication( args ); Biff b = new Biff(); a.setMainWidget( b ); b.show(); |