summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/progressbar
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/progressbar')
-rw-r--r--qtjava/javalib/examples/progressbar/Main.java2
-rw-r--r--qtjava/javalib/examples/progressbar/ProgressBar.java34
2 files changed, 18 insertions, 18 deletions
diff --git a/qtjava/javalib/examples/progressbar/Main.java b/qtjava/javalib/examples/progressbar/Main.java
index be103c03..cd235a1b 100644
--- a/qtjava/javalib/examples/progressbar/Main.java
+++ b/qtjava/javalib/examples/progressbar/Main.java
@@ -14,7 +14,7 @@ class Main {
public static void main(String[] args)
{
- QApplication a = new QApplication( args );
+ TQApplication a = new TQApplication( args );
ProgressBar progressbar = new ProgressBar();
progressbar.setCaption("Qt Example - ProgressBar");
diff --git a/qtjava/javalib/examples/progressbar/ProgressBar.java b/qtjava/javalib/examples/progressbar/ProgressBar.java
index 1d8ab1d3..0737e270 100644
--- a/qtjava/javalib/examples/progressbar/ProgressBar.java
+++ b/qtjava/javalib/examples/progressbar/ProgressBar.java
@@ -11,13 +11,13 @@
import org.kde.qt.*;
-class ProgressBar extends QButtonGroup
+class ProgressBar extends TQButtonGroup
{
-protected QRadioButton slow, normal, fast;
-protected QPushButton start, pause, reset;
-protected QProgressBar progress;
-protected QTimer timer;
+protected TQRadioButton slow, normal, fast;
+protected TQPushButton start, pause, reset;
+protected TQProgressBar progress;
+protected TQTimer timer;
/*
@@ -31,39 +31,39 @@ ProgressBar( )
this(null, null);
}
-ProgressBar( QWidget parent, String name )
+ProgressBar( TQWidget parent, String name )
{
super( 0, Horizontal, "Progress Bar", parent, name );
- timer = new QTimer();
+ timer = new TQTimer();
setMargin( 10 );
- QGridLayout toplayout = new QGridLayout( layout(), 2, 2, 5);
+ TQGridLayout toplayout = new TQGridLayout( layout(), 2, 2, 5);
setRadioButtonExclusive( true );
// insert three radiobuttons which the user can use
// to set the speed of the progress and two pushbuttons
// to start/pause/continue and reset the progress
- slow = new QRadioButton( "&Slow", this );
- normal = new QRadioButton( "&Normal", this );
- fast = new QRadioButton( "&Fast", this );
- QVBoxLayout vb1 = new QVBoxLayout();
+ slow = new TQRadioButton( "&Slow", this );
+ normal = new TQRadioButton( "&Normal", this );
+ fast = new TQRadioButton( "&Fast", this );
+ TQVBoxLayout vb1 = new TQVBoxLayout();
toplayout.addLayout( vb1, 0, 0 );
vb1.addWidget( slow );
vb1.addWidget( normal );
vb1.addWidget( fast );
// two push buttons, one for start, for for reset.
- start = new QPushButton( "&Start", this );
- reset = new QPushButton( "&Reset", this );
- QVBoxLayout vb2 = new QVBoxLayout();
+ start = new TQPushButton( "&Start", this );
+ reset = new TQPushButton( "&Reset", this );
+ TQVBoxLayout vb2 = new TQVBoxLayout();
toplayout.addLayout( vb2, 0, 1 );
vb2.addWidget( start );
vb2.addWidget( reset );
// Create the progressbar
- progress = new QProgressBar( 100, this );
- // progress.setStyle( new QMotifStyle() );
+ progress = new TQProgressBar( 100, this );
+ // progress.setStyle( new TQMotifStyle() );
toplayout.addMultiCellWidget( progress, 1, 1, 0, 1 );
// connect the clicked() SIGNALs of the pushbuttons to SLOTs