summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/test/ISBNValidator.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/test/ISBNValidator.java')
-rw-r--r--qtjava/javalib/test/ISBNValidator.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/qtjava/javalib/test/ISBNValidator.java b/qtjava/javalib/test/ISBNValidator.java
index 25744e11..67f32ac7 100644
--- a/qtjava/javalib/test/ISBNValidator.java
+++ b/qtjava/javalib/test/ISBNValidator.java
@@ -6,7 +6,7 @@ import org.kde.qt.*;
* A class that validates ISBN numbers. See the text for the
* specification.
*/
-public class ISBNValidator extends QValidator
+public class ISBNValidator extends TQValidator
{
public ISBNValidator()
{
@@ -99,7 +99,7 @@ public class ISBNValidator extends QValidator
/**
* This method is called when the user has pressed return, but
* validate() has judged the string valid but not acceptable. Note
- * that fixup() is not required to return an acceptable string. It is
+ * that fixup() is not retquired to return an acceptable string. It is
* guaranteed that the caller will validate() the string once again
* after the call to fixup().
*/
@@ -129,17 +129,17 @@ public class ISBNValidator extends QValidator
public static void main(String[] args)
{
- class ReturnReceiver extends QObject {
+ class ReturnReceiver extends TQObject {
public void slotReturnPressed()
{
System.out.println( "return pressed - input accepted" );
}
}
- QApplication myapp = new QApplication( args );
+ TQApplication myapp = new TQApplication( args );
// create a line edit
- QLineEdit myedit = new QLineEdit((QWidget) null);
+ TQLineEdit myedit = new TQLineEdit((TQWidget) null);
myedit.resize( 100, 30 );
// create and assign a validator for the line edit
@@ -148,7 +148,7 @@ public class ISBNValidator extends QValidator
// set up a receiver for the returnPressed() signal
ReturnReceiver receiver = new ReturnReceiver();
- QObject.connect( myedit, SIGNAL( "returnPressed()" ),
+ TQObject.connect( myedit, SIGNAL( "returnPressed()" ),
receiver, SLOT( "slotReturnPressed()" ) );
myapp.setMainWidget( myedit );