summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/buttongroups/ButtonsGroups.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/buttongroups/ButtonsGroups.java')
-rw-r--r--qtjava/javalib/examples/buttongroups/ButtonsGroups.java48
1 files changed, 24 insertions, 24 deletions
diff --git a/qtjava/javalib/examples/buttongroups/ButtonsGroups.java b/qtjava/javalib/examples/buttongroups/ButtonsGroups.java
index 0ac7e811..3060e23b 100644
--- a/qtjava/javalib/examples/buttongroups/ButtonsGroups.java
+++ b/qtjava/javalib/examples/buttongroups/ButtonsGroups.java
@@ -9,10 +9,10 @@
****************************************************************************/
import org.kde.qt.*;
-class ButtonsGroups extends QWidget
+class ButtonsGroups extends TQWidget
{
-protected QCheckBox state;
-protected QRadioButton rb21, rb22, rb23;
+protected TQCheckBox state;
+protected TQRadioButton rb21, rb22, rb23;
@@ -28,57 +28,57 @@ public ButtonsGroups( )
this(null, null);
}
-public ButtonsGroups( QWidget parent, String name )
+public ButtonsGroups( TQWidget parent, String name )
{
super( parent, name );
// Create Widgets which allow easy layouting
- QVBoxLayout vbox = new QVBoxLayout( this );
- QHBoxLayout box1 = new QHBoxLayout( vbox );
- QHBoxLayout box2 = new QHBoxLayout( vbox );
+ TQVBoxLayout vbox = new TQVBoxLayout( this );
+ TQHBoxLayout box1 = new TQHBoxLayout( vbox );
+ TQHBoxLayout box2 = new TQHBoxLayout( vbox );
// ------- first group
// Create an exclusive button group
- QButtonGroup bgrp1 = new QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 1 (exclusive)", this);
+ TQButtonGroup bgrp1 = new TQButtonGroup( 1, TQGroupBox.Horizontal, "Button Group 1 (exclusive)", this);
box1.addWidget( bgrp1 );
bgrp1.setExclusive( true );
// insert 3 radiobuttons
- QRadioButton rb11 = new QRadioButton( "&Radiobutton 1", bgrp1 );
+ TQRadioButton rb11 = new TQRadioButton( "&Radiobutton 1", bgrp1 );
rb11.setChecked( true );
- new QRadioButton( "R&adiobutton 2", bgrp1 );
- new QRadioButton( "Ra&diobutton 3", bgrp1 );
+ new TQRadioButton( "R&adiobutton 2", bgrp1 );
+ new TQRadioButton( "Ra&diobutton 3", bgrp1 );
// ------- second group
// Create a non-exclusive buttongroup
- QButtonGroup bgrp2 = new QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 2 (non-exclusive)", this );
+ TQButtonGroup bgrp2 = new TQButtonGroup( 1, TQGroupBox.Horizontal, "Button Group 2 (non-exclusive)", this );
box1.addWidget( bgrp2 );
bgrp2.setExclusive( false );
// insert 3 checkboxes
- new QCheckBox( "&Checkbox 1", bgrp2 );
- QCheckBox cb12 = new QCheckBox( "C&heckbox 2", bgrp2 );
+ new TQCheckBox( "&Checkbox 1", bgrp2 );
+ TQCheckBox cb12 = new TQCheckBox( "C&heckbox 2", bgrp2 );
cb12.setChecked( true );
- QCheckBox cb13 = new QCheckBox( "Triple &State Button", bgrp2 );
+ TQCheckBox cb13 = new TQCheckBox( "Triple &State Button", bgrp2 );
cb13.setTristate( true );
cb13.setChecked( true );
// ------------ third group
// create a buttongroup which is exclusive for radiobuttons and non-exclusive for all other buttons
- QButtonGroup bgrp3 = new QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 3 (Radiobutton-exclusive)", this );
+ TQButtonGroup bgrp3 = new TQButtonGroup( 1, TQGroupBox.Horizontal, "Button Group 3 (Radiobutton-exclusive)", this );
box2.addWidget( bgrp3 );
bgrp3.setRadioButtonExclusive( true );
// insert three radiobuttons
- rb21 = new QRadioButton( "Rad&iobutton 1", bgrp3 );
- rb22 = new QRadioButton( "Radi&obutton 2", bgrp3 );
- rb23 = new QRadioButton( "Radio&button 3", bgrp3 );
+ rb21 = new TQRadioButton( "Rad&iobutton 1", bgrp3 );
+ rb22 = new TQRadioButton( "Radi&obutton 2", bgrp3 );
+ rb23 = new TQRadioButton( "Radio&button 3", bgrp3 );
rb23.setChecked( true );
// insert a checkbox...
- state = new QCheckBox( "E&nable Radiobuttons", bgrp3 );
+ state = new TQCheckBox( "E&nable Radiobuttons", bgrp3 );
state.setChecked( true );
// ...and connect its SIGNAL clicked() with the SLOT slotChangeGrp3State()
connect( state, SIGNAL(" clicked()"), this, SLOT(" slotChangeGrp3State()") );
@@ -86,13 +86,13 @@ public ButtonsGroups( QWidget parent, String name )
// ------------ fourth group
// create a groupbox which layouts its childs in a columns
- QGroupBox bgrp4 = new QButtonGroup( 1, QGroupBox.Horizontal, "Groupbox with normal buttons", this );
+ TQGroupBox bgrp4 = new TQButtonGroup( 1, TQGroupBox.Horizontal, "Groupbox with normal buttons", this );
box2.addWidget( bgrp4 );
// insert three pushbuttons...
- new QPushButton( "&Push Button", bgrp4 );
- QPushButton tb2 = new QPushButton( "&Toggle Button", bgrp4 );
- QPushButton tb3 = new QPushButton( "&Flat Button", bgrp4 );
+ new TQPushButton( "&Push Button", bgrp4 );
+ TQPushButton tb2 = new TQPushButton( "&Toggle Button", bgrp4 );
+ TQPushButton tb3 = new TQPushButton( "&Flat Button", bgrp4 );
// ... and make the second one a toggle button
tb2.setToggleButton( true );