From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001
From: Timothy Pearson Richtext
\n"
+ "
Qt supports formatted rich text, such as the heading above, emphasized, bold and underlined text, as well as colored text. This is red, while this is green, and this is blue.
\n" + "<> >\n" @@ -5726,43 +5726,43 @@ WidgetsBase( QWidget parent, String name, int fl ) WidgetsBaseLayout.addWidget( TextEdit1, 2, 1 ); - TabWidget2 = new QTabWidget( this, "TabWidget2" ); + TabWidget2 = new TQTabWidget( this, "TabWidget2" ); - tab = new QWidget( TabWidget2, "tab" ); - tabLayout = new QGridLayout( tab ); + tab = new TQWidget( TabWidget2, "tab" ); + tabLayout = new TQGridLayout( tab ); tabLayout.setSpacing( 6 ); tabLayout.setMargin( 11 ); - IconView1 = new QIconView( tab, "IconView1" ); - item1 = new QIconViewItem( IconView1, trUtf8( "Item 1", "" ), image10 ); - item2 = new QIconViewItem( IconView1, trUtf8( "Item 2", "" ), image11 ); - item3 = new QIconViewItem( IconView1, trUtf8( "Item 3", "" ), image12 ); - item4 = new QIconViewItem( IconView1, trUtf8( "Item 4", "" ), image13 ); - item5 = new QIconViewItem( IconView1, trUtf8( "Item 5", "" ), image14 ); - item6 = new QIconViewItem( IconView1, trUtf8( "Item 6", "" ), image15 ); - item7 = new QIconViewItem( IconView1, trUtf8( "Item 7", "" ), image16 ); - item8 = new QIconViewItem( IconView1, trUtf8( "Item 8", "" ), image17 ); - item9 = new QIconViewItem( IconView1, trUtf8( "Item 9", "" ), image18 ); - item10 = new QIconViewItem( IconView1, trUtf8( "Item 10", "" ), image19 ); - item11 = new QIconViewItem( IconView1, trUtf8( "Item 11", "" ), image20 ); - item12 = new QIconViewItem( IconView1, trUtf8( "Item 12", "" ), image21 ); - item13 = new QIconViewItem( IconView1, trUtf8( "Item 13", "" ), image22 ); - item14 = new QIconViewItem( IconView1, trUtf8( "Item 14", "" ), image23 ); - item15 = new QIconViewItem( IconView1, trUtf8( "Item 15", "" ), image24 ); - item16 = new QIconViewItem( IconView1, trUtf8( "Item 16", "" ), image25 ); - item17 = new QIconViewItem( IconView1, trUtf8( "Item 17", "" ), image26 ); - IconView1.setArrangement( QIconView.LeftToRight ); - IconView1.setResizeMode( QIconView.Adjust ); + IconView1 = new TQIconView( tab, "IconView1" ); + item1 = new TQIconViewItem( IconView1, trUtf8( "Item 1", "" ), image10 ); + item2 = new TQIconViewItem( IconView1, trUtf8( "Item 2", "" ), image11 ); + item3 = new TQIconViewItem( IconView1, trUtf8( "Item 3", "" ), image12 ); + item4 = new TQIconViewItem( IconView1, trUtf8( "Item 4", "" ), image13 ); + item5 = new TQIconViewItem( IconView1, trUtf8( "Item 5", "" ), image14 ); + item6 = new TQIconViewItem( IconView1, trUtf8( "Item 6", "" ), image15 ); + item7 = new TQIconViewItem( IconView1, trUtf8( "Item 7", "" ), image16 ); + item8 = new TQIconViewItem( IconView1, trUtf8( "Item 8", "" ), image17 ); + item9 = new TQIconViewItem( IconView1, trUtf8( "Item 9", "" ), image18 ); + item10 = new TQIconViewItem( IconView1, trUtf8( "Item 10", "" ), image19 ); + item11 = new TQIconViewItem( IconView1, trUtf8( "Item 11", "" ), image20 ); + item12 = new TQIconViewItem( IconView1, trUtf8( "Item 12", "" ), image21 ); + item13 = new TQIconViewItem( IconView1, trUtf8( "Item 13", "" ), image22 ); + item14 = new TQIconViewItem( IconView1, trUtf8( "Item 14", "" ), image23 ); + item15 = new TQIconViewItem( IconView1, trUtf8( "Item 15", "" ), image24 ); + item16 = new TQIconViewItem( IconView1, trUtf8( "Item 16", "" ), image25 ); + item17 = new TQIconViewItem( IconView1, trUtf8( "Item 17", "" ), image26 ); + IconView1.setArrangement( TQIconView.LeftToRight ); + IconView1.setResizeMode( TQIconView.Adjust ); tabLayout.addWidget( IconView1, 0, 0 ); TabWidget2.insertTab( tab, trUtf8( "Iconview", "" ) ); - tab_2 = new QWidget( TabWidget2, "tab_2" ); - tabLayout_2 = new QGridLayout( tab_2 ); + tab_2 = new TQWidget( TabWidget2, "tab_2" ); + tabLayout_2 = new TQGridLayout( tab_2 ); tabLayout_2.setSpacing( 6 ); tabLayout_2.setMargin( 11 ); - Table1 = new QTable( tab_2, "Table1" ); + Table1 = new TQTable( tab_2, "Table1" ); Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "Tables", "" ) ); Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "are", "" ) ); Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "easy", "" ) ); @@ -5775,9 +5775,9 @@ WidgetsBase( QWidget parent, String name, int fl ) Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "10", "" ) ); Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "11", "" ) ); Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "12", "" ) ); - Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new QIconSet(image27), trUtf8( "", "" ) ); - Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new QIconSet(image28), trUtf8( "", "" ) ); - Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new QIconSet(image29), trUtf8( "", "" ) ); + Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new TQIconSet(image27), trUtf8( "", "" ) ); + Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new TQIconSet(image28), trUtf8( "", "" ) ); + Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new TQIconSet(image29), trUtf8( "", "" ) ); Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, trUtf8( "4", "" ) ); Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, trUtf8( "5", "" ) ); Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, trUtf8( "6", "" ) ); @@ -5794,37 +5794,37 @@ WidgetsBase( QWidget parent, String name, int fl ) tabLayout_2.addWidget( Table1, 0, 0 ); TabWidget2.insertTab( tab_2, trUtf8( "Table", "" ) ); - tab_3 = new QWidget( TabWidget2, "tab_3" ); - tabLayout_3 = new QGridLayout( tab_3 ); + tab_3 = new TQWidget( TabWidget2, "tab_3" ); + tabLayout_3 = new TQGridLayout( tab_3 ); tabLayout_3.setSpacing( 6 ); tabLayout_3.setMargin( 11 ); - ListView3 = new QListView( tab_3, "ListView3" ); + ListView3 = new TQListView( tab_3, "ListView3" ); ListView3.addColumn( trUtf8( "Things", "" ) ); ListView3.addColumn( trUtf8( "Text", "" ) ); ListView3.addColumn( trUtf8( "Stuff", "" ) ); - item_1 = new QListViewItem( ListView3, "" ); + item_1 = new TQListViewItem( ListView3, "" ); item_1.setPixmap( 0, image30 ); item_1.setText( 1, trUtf8( "Airbrush", "" ) ); item_1.setPixmap( 1, image31 ); item_1.setText( 2, trUtf8( "What stuff?", "" ) ); - item_4 = new QListViewItem( ListView3, item_1 ); + item_4 = new TQListViewItem( ListView3, item_1 ); item_4.setPixmap( 0, image32 ); item_4.setText( 1, trUtf8( "Eraser", "" ) ); item_4.setPixmap( 1, image31 ); item_4.setText( 2, trUtf8( "Here?", "" ) ); - item_2 = new QListViewItem( ListView3, item_4 ); + item_2 = new TQListViewItem( ListView3, item_4 ); item_2.setOpen( true ); - item_3 = new QListViewItem( item_2, item_4 ); + item_3 = new TQListViewItem( item_2, item_4 ); item_3.setOpen( true ); - item_5 = new QListViewItem( item_3, item_4 ); + item_5 = new TQListViewItem( item_3, item_4 ); item_5.setText( 0, trUtf8( "Subitem", "" ) ); item_5.setPixmap( 0, image28 ); item_3.setText( 0, trUtf8( "Pixmap subitem 1", "" ) ); item_2.setOpen( true ); - item_6 = new QListViewItem( item_2, item_3 ); + item_6 = new TQListViewItem( item_2, item_3 ); item_6.setText( 0, trUtf8( "Pixmap subitem 2 ", "" ) ); item_2.setText( 0, trUtf8( "Pixmap item", "" ) ); item_2.setPixmap( 0, image33 ); @@ -5832,53 +5832,53 @@ WidgetsBase( QWidget parent, String name, int fl ) item_2.setText( 2, trUtf8( "Nothing Again", "" ) ); ListView3.setAllColumnsShowFocus( true ); - ListView3.setResizeMode( QListView.AllColumns ); + ListView3.setResizeMode( TQListView.AllColumns ); tabLayout_3.addWidget( ListView3, 0, 0 ); TabWidget2.insertTab( tab_3, trUtf8( "Listview", "" ) ); WidgetsBaseLayout.addMultiCellWidget( TabWidget2, 3, 3, 0, 1 ); - groupBox = new QGroupBox( this, "groupBox" ); + groupBox = new TQGroupBox( this, "groupBox" ); groupBox.setTitle( trUtf8( "Group box" ) ); groupBox.setColumnLayout(0, Qt.Vertical ); groupBox.layout().setSpacing( 0 ); groupBox.layout().setMargin( 0 ); - groupBoxLayout = new QGridLayout( groupBox.layout() ); + groupBoxLayout = new TQGridLayout( groupBox.layout() ); groupBoxLayout.setAlignment( Qt.AlignTop ); groupBoxLayout.setSpacing( 6 ); groupBoxLayout.setMargin( 11 ); - lcdDisplay = new QLCDNumber( groupBox, "lcdDisplay" ); - sizePolicy1 = new QSizePolicy(); + lcdDisplay = new TQLCDNumber( groupBox, "lcdDisplay" ); + sizePolicy1 = new TQSizePolicy(); sizePolicy1.setHorData(7); sizePolicy1.setVerData(7); sizePolicy1.setHeightForWidth(lcdDisplay.sizePolicy().hasHeightForWidth()); lcdDisplay.setSizePolicy( sizePolicy1 ); lcdDisplay.setNumDigits( 2 ); - lcdDisplay.setSegmentStyle( QLCDNumber.Filled ); + lcdDisplay.setSegmentStyle( TQLCDNumber.Filled ); groupBoxLayout.addMultiCellWidget( lcdDisplay, 0, 2, 3, 3 ); - slider = new QSlider( groupBox, "slider" ); - slider.setOrientation( QSlider.Horizontal ); - slider.setTickmarks( QSlider.Left ); + slider = new TQSlider( groupBox, "slider" ); + slider.setOrientation( TQSlider.Horizontal ); + slider.setTickmarks( TQSlider.Left ); slider.setTickInterval( 5 ); groupBoxLayout.addWidget( slider, 2, 2 ); - TextLabel1_2 = new QLabel( groupBox, "TextLabel1_2" ); + TextLabel1_2 = new TQLabel( groupBox, "TextLabel1_2" ); TextLabel1_2.setText( trUtf8( "Pick a base color:" ) ); groupBoxLayout.addWidget( TextLabel1_2, 0, 0 ); - pushButton = new QPushButton( groupBox, "pushButton" ); - pushButton.setCursor( new QCursor( 0 ) ); + pushButton = new TQPushButton( groupBox, "pushButton" ); + pushButton.setCursor( new TQCursor( 0 ) ); pushButton.setText( trUtf8( "&Reset colors" ) ); groupBoxLayout.addWidget( pushButton, 2, 0 ); - buttonColorBox = new QComboBox( false, groupBox, "buttonColorBox" ); + buttonColorBox = new TQComboBox( false, groupBox, "buttonColorBox" ); buttonColorBox.insertItem( image34, trUtf8( "pale green", "" ) ); buttonColorBox.insertItem( image35, trUtf8( "deep sky blue", "" ) ); buttonColorBox.insertItem( image36, trUtf8( "steel blue", "" ) ); @@ -5889,101 +5889,101 @@ WidgetsBase( QWidget parent, String name, int fl ) groupBoxLayout.addWidget( buttonColorBox, 1, 0 ); - lineEdit = new QLineEdit( groupBox, "lineEdit" ); + lineEdit = new TQLineEdit( groupBox, "lineEdit" ); lineEdit.setText( trUtf8( "hot pink" ) ); groupBoxLayout.addWidget( lineEdit, 1, 1 ); - TextLabel1_2_2 = new QLabel( groupBox, "TextLabel1_2_2" ); + TextLabel1_2_2 = new TQLabel( groupBox, "TextLabel1_2_2" ); TextLabel1_2_2.setText( trUtf8( "Enter a color name and hit return:" ) ); groupBoxLayout.addWidget( TextLabel1_2_2, 0, 1 ); - spinBox = new QSpinBox( groupBox, "spinBox" ); + spinBox = new TQSpinBox( groupBox, "spinBox" ); groupBoxLayout.addWidget( spinBox, 1, 2 ); - progressBar = new QProgressBar( groupBox, "progressBar" ); + progressBar = new TQProgressBar( groupBox, "progressBar" ); groupBoxLayout.addWidget( progressBar, 0, 2 ); - colorTest = new QLabel( groupBox, "colorTest" ); - colorTest.setFrameShape( QLabel.Box ); - colorTest.setFrameShadow( QLabel.Sunken ); + colorTest = new TQLabel( groupBox, "colorTest" ); + colorTest.setFrameShape( TQLabel.Box ); + colorTest.setFrameShadow( TQLabel.Sunken ); colorTest.setText( trUtf8( "Color test area" ) ); - colorTest.setAlignment( QLabel.AlignAuto | QLabel.AlignCenter ); + colorTest.setAlignment( TQLabel.AlignAuto | TQLabel.AlignCenter ); groupBoxLayout.addWidget( colorTest, 2, 1 ); WidgetsBaseLayout.addMultiCellWidget( groupBox, 1, 1, 0, 1 ); - Layout9 = new QHBoxLayout(); + Layout9 = new TQHBoxLayout(); Layout9.setSpacing( 6 ); Layout9.setMargin( 0 ); - PixmapLabel1 = new QLabel( this, "PixmapLabel1" ); - PixmapLabel1.setFrameShape( QLabel.Panel ); + PixmapLabel1 = new TQLabel( this, "PixmapLabel1" ); + PixmapLabel1.setFrameShape( TQLabel.Panel ); PixmapLabel1.setMargin( 1 ); PixmapLabel1.setPixmap( image41 ); PixmapLabel1.setScaledContents( true ); Layout9.addWidget( PixmapLabel1 ); - ButtonGroup1 = new QButtonGroup( this, "ButtonGroup1" ); + ButtonGroup1 = new TQButtonGroup( this, "ButtonGroup1" ); ButtonGroup1.setTitle( trUtf8( "Check boxes" ) ); ButtonGroup1.setColumnLayout(0, Qt.Vertical ); ButtonGroup1.layout().setSpacing( 0 ); ButtonGroup1.layout().setMargin( 0 ); - ButtonGroup1Layout = new QGridLayout( ButtonGroup1.layout() ); + ButtonGroup1Layout = new TQGridLayout( ButtonGroup1.layout() ); ButtonGroup1Layout.setAlignment( Qt.AlignTop ); ButtonGroup1Layout.setSpacing( 6 ); ButtonGroup1Layout.setMargin( 11 ); - CheckBox1 = new QCheckBox( ButtonGroup1, "CheckBox1" ); + CheckBox1 = new TQCheckBox( ButtonGroup1, "CheckBox1" ); CheckBox1.setText( trUtf8( "Apples" ) ); ButtonGroup1Layout.addWidget( CheckBox1, 0, 0 ); - CheckBox2 = new QCheckBox( ButtonGroup1, "CheckBox2" ); + CheckBox2 = new TQCheckBox( ButtonGroup1, "CheckBox2" ); CheckBox2.setText( trUtf8( "Banana" ) ); ButtonGroup1Layout.addWidget( CheckBox2, 1, 0 ); - CheckBox3 = new QCheckBox( ButtonGroup1, "CheckBox3" ); + CheckBox3 = new TQCheckBox( ButtonGroup1, "CheckBox3" ); CheckBox3.setText( trUtf8( "Orange" ) ); CheckBox3.setChecked( true ); ButtonGroup1Layout.addWidget( CheckBox3, 2, 0 ); Layout9.addWidget( ButtonGroup1 ); - ButtonGroup2 = new QButtonGroup( this, "ButtonGroup2" ); + ButtonGroup2 = new TQButtonGroup( this, "ButtonGroup2" ); ButtonGroup2.setTitle( trUtf8( "Radio buttons" ) ); ButtonGroup2.setColumnLayout(0, Qt.Vertical ); ButtonGroup2.layout().setSpacing( 0 ); ButtonGroup2.layout().setMargin( 0 ); - ButtonGroup2Layout = new QGridLayout( ButtonGroup2.layout() ); + ButtonGroup2Layout = new TQGridLayout( ButtonGroup2.layout() ); ButtonGroup2Layout.setAlignment( Qt.AlignTop ); ButtonGroup2Layout.setSpacing( 6 ); ButtonGroup2Layout.setMargin( 11 ); - RadioButton3 = new QRadioButton( ButtonGroup2, "RadioButton3" ); + RadioButton3 = new TQRadioButton( ButtonGroup2, "RadioButton3" ); RadioButton3.setText( trUtf8( "Sprite" ) ); ButtonGroup2Layout.addWidget( RadioButton3, 1, 0 ); - RadioButton4 = new QRadioButton( ButtonGroup2, "RadioButton4" ); + RadioButton4 = new TQRadioButton( ButtonGroup2, "RadioButton4" ); RadioButton4.setText( trUtf8( "Farris" ) ); ButtonGroup2Layout.addWidget( RadioButton4, 2, 0 ); - RadioButton2 = new QRadioButton( ButtonGroup2, "RadioButton2" ); + RadioButton2 = new TQRadioButton( ButtonGroup2, "RadioButton2" ); RadioButton2.setText( trUtf8( "Solo" ) ); RadioButton2.setChecked( true ); ButtonGroup2Layout.addWidget( RadioButton2, 0, 0 ); Layout9.addWidget( ButtonGroup2 ); - GroupBox1 = new QGroupBox( this, "GroupBox1" ); - sizePolicy2 = new QSizePolicy(); + GroupBox1 = new TQGroupBox( this, "GroupBox1" ); + sizePolicy2 = new TQSizePolicy(); sizePolicy2.setHorData(7); sizePolicy2.setVerData(7); sizePolicy2.setHeightForWidth(GroupBox1.sizePolicy().hasHeightForWidth()); @@ -5992,38 +5992,38 @@ WidgetsBase( QWidget parent, String name, int fl ) GroupBox1.setColumnLayout(0, Qt.Vertical ); GroupBox1.layout().setSpacing( 0 ); GroupBox1.layout().setMargin( 0 ); - GroupBox1Layout = new QGridLayout( GroupBox1.layout() ); + GroupBox1Layout = new TQGridLayout( GroupBox1.layout() ); GroupBox1Layout.setAlignment( Qt.AlignTop ); GroupBox1Layout.setSpacing( 6 ); GroupBox1Layout.setMargin( 11 ); clock = new AnalogClock( GroupBox1, "clock" ); - sizePolicy3 = new QSizePolicy(); + sizePolicy3 = new TQSizePolicy(); sizePolicy3.setHorData(0); sizePolicy3.setVerData(0); sizePolicy3.setHeightForWidth(clock.sizePolicy().hasHeightForWidth()); clock.setSizePolicy( sizePolicy3 ); - clock.setMinimumSize( new QSize( 100, 100 ) ); + clock.setMinimumSize( new TQSize( 100, 100 ) ); GroupBox1Layout.addMultiCellWidget( clock, 0, 2, 0, 0 ); - dateEdit = new QDateEdit( GroupBox1, "dateEdit" ); + dateEdit = new TQDateEdit( GroupBox1, "dateEdit" ); GroupBox1Layout.addWidget( dateEdit, 1, 1 ); - timeEdit = new QTimeEdit( GroupBox1, "timeEdit" ); + timeEdit = new TQTimeEdit( GroupBox1, "timeEdit" ); timeEdit.setAutoAdvance( true ); GroupBox1Layout.addWidget( timeEdit, 2, 1 ); - Layout5 = new QHBoxLayout(); + Layout5 = new TQHBoxLayout(); Layout5.setSpacing( 6 ); Layout5.setMargin( 0 ); - dateTimeLabel = new QLabel( GroupBox1, "dateTimeLabel" ); + dateTimeLabel = new TQLabel( GroupBox1, "dateTimeLabel" ); dateTimeLabel.setText( trUtf8( "DateTime string goes here!" ) ); Layout5.addWidget( dateTimeLabel ); - QSpacerItem spacer = new QSpacerItem( 20, 20, QSizePolicy.Expanding, QSizePolicy.Minimum ); + TQSpacerItem spacer = new TQSpacerItem( 20, 20, TQSizePolicy.Expanding, TQSizePolicy.Minimum ); Layout5.addItem( spacer ); GroupBox1Layout.addLayout( Layout5, 0, 1 ); @@ -6053,12 +6053,12 @@ WidgetsBase( QWidget parent, String name, int fl ) init(); } -WidgetsBase( QWidget parent, String name) +WidgetsBase( TQWidget parent, String name) { this(parent, name, 0); } -WidgetsBase( QWidget parent) +WidgetsBase( TQWidget parent) { this(parent, null, 0); } @@ -6095,12 +6095,12 @@ public void destroy() public void setColor(String color) { - groupBox.setPalette( new QPalette(new QColor( color )) ); + groupBox.setPalette( new TQPalette(new TQColor( color )) ); } public void updateColorTest(String color) { - colorTest.setPalette( new QPalette(new QColor( color )) ); + colorTest.setPalette( new TQPalette(new TQColor( color )) ); } public void updateDateTimeString() -- cgit v1.2.3