diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:29:54 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:29:54 -0600 |
commit | b8a4f26c42f6d41e8251b60357f1a6990c1e8ad8 (patch) | |
tree | 9beca7fe1a592f5f49be1e0bb4d03f0dfc1829c7 /k9author/chapterEdit.cpp | |
parent | 23c5272c1c49acf0906f7c97a524333705f7be46 (diff) | |
download | k9copy-b8a4f26c42f6d41e8251b60357f1a6990c1e8ad8.tar.gz k9copy-b8a4f26c42f6d41e8251b60357f1a6990c1e8ad8.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'k9author/chapterEdit.cpp')
-rw-r--r-- | k9author/chapterEdit.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/k9author/chapterEdit.cpp b/k9author/chapterEdit.cpp index 04eec11..0c14441 100644 --- a/k9author/chapterEdit.cpp +++ b/k9author/chapterEdit.cpp @@ -17,7 +17,7 @@ #include <kpushbutton.h> #include <tqcheckbox.h> #include <tqslider.h> -#include <tqlayout.h> +#include <layout.h> #include <tqtooltip.h> #include <tqwhatsthis.h> #include "ktimewidget.h" @@ -34,11 +34,11 @@ chapterEdit::chapterEdit( TQWidget* parent, const char* name, WFlags fl ) { if ( !name ) setName( "chapterEdit" ); - tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) ); + setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) ); chapterEditLayout = new TQGridLayout( this, 1, 1, 11, 6, "chapterEditLayout"); twstart = new KTimeWidget( this, "twstart" ); - twstart->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, twstart->sizePolicy().hasHeightForWidth() ) ); + twstart->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, twstart->sizePolicy().hasHeightForWidth() ) ); chapterEditLayout->addWidget( twstart, 1, 2 ); @@ -51,13 +51,13 @@ chapterEdit::chapterEdit( TQWidget* parent, const char* name, WFlags fl ) chapterEditLayout->addWidget( textLabel3, 0, 1 ); urFile = new KURLRequester( this, "urFile" ); - urFile->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, urFile->sizePolicy().hasHeightForWidth() ) ); + urFile->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, urFile->sizePolicy().hasHeightForWidth() ) ); urFile->setMinimumSize( TQSize( 200, 0 ) ); chapterEditLayout->addMultiCellWidget( urFile, 0, 0, 2, 4 ); bStart = new KPushButton( this, "bStart" ); - bStart->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bStart->sizePolicy().hasHeightForWidth() ) ); + bStart->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bStart->sizePolicy().hasHeightForWidth() ) ); chapterEditLayout->addWidget( bStart, 1, 3 ); spacer2 = new TQSpacerItem( 16, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); @@ -78,44 +78,44 @@ chapterEdit::chapterEdit( TQWidget* parent, const char* name, WFlags fl ) chapterEditLayout->addMultiCellWidget( ckBreakEnd, 5, 5, 2, 3 ); twend = new KTimeWidget( this, "twend" ); - twend->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, twend->sizePolicy().hasHeightForWidth() ) ); + twend->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, twend->sizePolicy().hasHeightForWidth() ) ); chapterEditLayout->addWidget( twend, 4, 2 ); spacer3 = new TQSpacerItem( 20, 31, TQSizePolicy::Minimum, TQSizePolicy::Fixed ); chapterEditLayout->addItem( spacer3, 3, 2 ); - tqlayout3 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout3"); + layout3 = new TQGridLayout( 0, 1, 1, 0, 6, "layout3"); lPosition = new TQLabel( this, "lPosition" ); - lPosition->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, lPosition->sizePolicy().hasHeightForWidth() ) ); + lPosition->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, lPosition->sizePolicy().hasHeightForWidth() ) ); - tqlayout3->addWidget( lPosition, 1, 1 ); + layout3->addWidget( lPosition, 1, 1 ); slider = new TQSlider( this, "slider" ); slider->setOrientation( Qt::Horizontal ); - tqlayout3->addWidget( slider, 1, 0 ); + layout3->addWidget( slider, 1, 0 ); image = new TQLabel( this, "image" ); image->setMinimumSize( TQSize( 320, 200 ) ); image->setPaletteBackgroundColor( TQColor( 0, 0, 0 ) ); image->setScaledContents( TRUE ); - tqlayout3->addMultiCellWidget( image, 0, 0, 0, 1 ); + layout3->addMultiCellWidget( image, 0, 0, 0, 1 ); - chapterEditLayout->addMultiCellLayout( tqlayout3, 0, 6, 0, 0 ); + chapterEditLayout->addMultiCellLayout( layout3, 0, 6, 0, 0 ); bEnd = new KPushButton( this, "bEnd" ); - bEnd->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bEnd->sizePolicy().hasHeightForWidth() ) ); + bEnd->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bEnd->sizePolicy().hasHeightForWidth() ) ); chapterEditLayout->addWidget( bEnd, 4, 3 ); bTitleButton = new TQPushButton( this, "bTitleButton" ); - bTitleButton->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bTitleButton->sizePolicy().hasHeightForWidth() ) ); + bTitleButton->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bTitleButton->sizePolicy().hasHeightForWidth() ) ); chapterEditLayout->addWidget( bTitleButton, 7, 0 ); languageChange(); - resize( TQSize(627, 300).expandedTo(tqminimumSizeHint()) ); + resize( TQSize(627, 300).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections |