summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/rangecontrols
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/rangecontrols
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtjava/javalib/examples/rangecontrols')
-rw-r--r--qtjava/javalib/examples/rangecontrols/Main.java2
-rw-r--r--qtjava/javalib/examples/rangecontrols/RangeControls.java48
2 files changed, 25 insertions, 25 deletions
diff --git a/qtjava/javalib/examples/rangecontrols/Main.java b/qtjava/javalib/examples/rangecontrols/Main.java
index 3fd16e02..e1008ef5 100644
--- a/qtjava/javalib/examples/rangecontrols/Main.java
+++ b/qtjava/javalib/examples/rangecontrols/Main.java
@@ -14,7 +14,7 @@ public class Main {
public static void main(String[] args)
{
- QApplication a = new QApplication( args );
+ TQApplication a = new TQApplication( args );
RangeControls rangecontrols = new RangeControls();
rangecontrols.resize( 500, 300 );
diff --git a/qtjava/javalib/examples/rangecontrols/RangeControls.java b/qtjava/javalib/examples/rangecontrols/RangeControls.java
index ed331e38..be392531 100644
--- a/qtjava/javalib/examples/rangecontrols/RangeControls.java
+++ b/qtjava/javalib/examples/rangecontrols/RangeControls.java
@@ -10,10 +10,10 @@
import org.kde.qt.*;
-class RangeControls extends QVBox
+class RangeControls extends TQVBox
{
-private QCheckBox notches, wrapping;
+private TQCheckBox notches, wrapping;
@@ -22,52 +22,52 @@ RangeControls( )
this(null, null);
}
-RangeControls( QWidget parent, String name )
+RangeControls( TQWidget parent, String name )
{
super( parent, name );
- QHBox row1 = new QHBox( this );
+ TQHBox row1 = new TQHBox( this );
- QVBox cell2 = new QVBox( row1 );
+ TQVBox cell2 = new TQVBox( row1 );
cell2.setMargin( 10 );
- cell2.setFrameStyle( QFrame.WinPanel | QFrame.Sunken );
+ cell2.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken );
- new QWidget( cell2 );
+ new TQWidget( cell2 );
- QLabel label1 = new QLabel( "Enter a value between\n" + ( -Integer.MAX_VALUE ) + " and " + Integer.MAX_VALUE + ":", cell2 );
+ TQLabel label1 = new TQLabel( "Enter a value between\n" + ( -Integer.MAX_VALUE ) + " and " + Integer.MAX_VALUE + ":", cell2 );
label1.setMaximumHeight( label1.sizeHint().height() );
- QSpinBox sb1 = new QSpinBox( -Integer.MAX_VALUE, Integer.MAX_VALUE, 1, cell2 );
+ TQSpinBox sb1 = new TQSpinBox( -Integer.MAX_VALUE, Integer.MAX_VALUE, 1, cell2 );
sb1.setValue( 0 );
- QLabel label2 = new QLabel( "Enter a zoom value:", cell2 );
+ TQLabel label2 = new TQLabel( "Enter a zoom value:", cell2 );
label2.setMaximumHeight( label2.sizeHint().height() );
- QSpinBox sb2 = new QSpinBox( 0, 1000, 10, cell2 );
+ TQSpinBox sb2 = new TQSpinBox( 0, 1000, 10, cell2 );
sb2.setSuffix( " %" );
sb2.setSpecialValueText( "Automatic" );
- QLabel label3 = new QLabel( "Enter a price:", cell2 );
+ TQLabel label3 = new TQLabel( "Enter a price:", cell2 );
label3.setMaximumHeight( label3.sizeHint().height() );
- QSpinBox sb3 = new QSpinBox( 0, Integer.MAX_VALUE, 1, cell2 );
+ TQSpinBox sb3 = new TQSpinBox( 0, Integer.MAX_VALUE, 1, cell2 );
sb3.setPrefix( "$" );
sb3.setValue( 355 );
- new QWidget( cell2 );
+ new TQWidget( cell2 );
- QHBox row2 = new QHBox( this );
+ TQHBox row2 = new TQHBox( this );
- QVBox cell3 = new QVBox( row2 );
+ TQVBox cell3 = new TQVBox( row2 );
cell3.setMargin( 10 );
- cell3.setFrameStyle( QFrame.WinPanel | QFrame.Sunken );
- QSlider hslider = new QSlider( 0, 64, 1, 33, Qt.Horizontal, cell3 );
- QLCDNumber lcd2 = new QLCDNumber( 2, cell3 );
+ cell3.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken );
+ TQSlider hslider = new TQSlider( 0, 64, 1, 33, Qt.Horizontal, cell3 );
+ TQLCDNumber lcd2 = new TQLCDNumber( 2, cell3 );
lcd2.display( 33 );
- lcd2.setSegmentStyle( QLCDNumber.Filled );
+ lcd2.setSegmentStyle( TQLCDNumber.Filled );
connect( hslider, SIGNAL(" valueChanged( int )"), lcd2, SLOT(" display( int )") );
- QHBox cell4 = new QHBox( row2 );
- cell4.setFrameStyle( QFrame.WinPanel | QFrame.Sunken );
+ TQHBox cell4 = new TQHBox( row2 );
+ cell4.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken );
cell4.setMargin( 10 );
- QSlider vslider = new QSlider( 0, 64, 1, 8, Qt.Vertical, cell4 );
- QLCDNumber lcd3 = new QLCDNumber( 3, cell4 );
+ TQSlider vslider = new TQSlider( 0, 64, 1, 8, Qt.Vertical, cell4 );
+ TQLCDNumber lcd3 = new TQLCDNumber( 3, cell4 );
lcd3.display( 8 );
connect( vslider, SIGNAL(" valueChanged( int )"), lcd3, SLOT(" display( int )") );
}