summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/progressbar/ProgressBar.java
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtjava/javalib/examples/progressbar/ProgressBar.java
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtjava/javalib/examples/progressbar/ProgressBar.java')
-rw-r--r--qtjava/javalib/examples/progressbar/ProgressBar.java34
1 files changed, 17 insertions, 17 deletions
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