diff options
Diffstat (limited to 'kword/KWFrameDia.cpp')
-rw-r--r-- | kword/KWFrameDia.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kword/KWFrameDia.cpp b/kword/KWFrameDia.cpp index ba6f6276..6c7fa4b2 100644 --- a/kword/KWFrameDia.cpp +++ b/kword/KWFrameDia.cpp @@ -614,8 +614,8 @@ void KWFrameDia::setupTab2() { // TAB Text Runaround // First groupbox m_runGroup = new TQButtonGroup( i18n( "Layout of Text in Other Frames" ), m_tab2); m_runGroup->setColumnLayout( 0, Qt::Vertical ); - m_runGroup->tqlayout()->setSpacing( KDialog::spacingHint() ); - TQGridLayout *groupBox1Layout = new TQGridLayout( m_runGroup->tqlayout() ); + m_runGroup->layout()->setSpacing( KDialog::spacingHint() ); + TQGridLayout *groupBox1Layout = new TQGridLayout( m_runGroup->layout() ); groupBox1Layout->setAlignment( TQt::AlignTop ); m_rRunNo = new TQRadioButton( i18n( "Text will run &through this frame" ), m_runGroup ); @@ -650,9 +650,9 @@ void KWFrameDia::setupTab2() { // TAB Text Runaround // Second groupbox m_runSideGroup = new TQButtonGroup( i18n( "Run Around Side" ), m_tab2); m_runSideGroup->setColumnLayout( 0, Qt::Vertical ); - m_runSideGroup->tqlayout()->setSpacing( KDialog::spacingHint() ); - m_runSideGroup->tqlayout()->setMargin( KDialog::marginHint() ); - TQGridLayout *runSideLayout = new TQGridLayout( m_runSideGroup->tqlayout() ); + m_runSideGroup->layout()->setSpacing( KDialog::spacingHint() ); + m_runSideGroup->layout()->setMargin( KDialog::marginHint() ); + TQGridLayout *runSideLayout = new TQGridLayout( m_runSideGroup->layout() ); runSideLayout->setAlignment( TQt::AlignTop ); m_rRunLeft = new TQRadioButton( i18n( "Run Around", "&Left" ), m_runSideGroup ); @@ -803,9 +803,9 @@ void KWFrameDia::setupTab3(){ // TAB Frameset myGroup->insert(m_rExistingFrameset,1); connect (m_rExistingFrameset, TQT_SIGNAL( toggled(bool)), this, TQT_SLOT(ensureValidFramesetSelected())); - TQHBoxLayout *tqlayout2 = new TQHBoxLayout( 0, 0, 6); + TQHBoxLayout *layout2 = new TQHBoxLayout( 0, 0, 6); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - tqlayout2->addItem( spacer ); + layout2->addItem( spacer ); m_lFrameSList = new TQListView( m_tab3, "m_lFrameSList" ); m_lFrameSList->addColumn( i18n("No.") ); @@ -815,8 +815,8 @@ void KWFrameDia::setupTab3(){ // TAB Frameset connect( m_lFrameSList, TQT_SIGNAL(selectionChanged ()),this,TQT_SLOT(selectExistingFrameset ()) ); connect (m_lFrameSList, TQT_SIGNAL( selectionChanged()), this, TQT_SLOT(ensureValidFramesetSelected())); - tqlayout2->addWidget( m_lFrameSList ); - tabLayout->addLayout( tqlayout2 ); + layout2->addWidget( m_lFrameSList ); + tabLayout->addLayout( layout2 ); m_rNewFrameset = new TQRadioButton( m_tab3); m_rNewFrameset->setText( i18n( "Create a new frameset" ) ); @@ -829,14 +829,14 @@ void KWFrameDia::setupTab3(){ // TAB Frameset line1->setFrameShape( TQFrame::HLine ); tabLayout->addWidget( line1 ); - TQHBoxLayout *tqlayout1 = new TQHBoxLayout( 0, 0, 6 ); + TQHBoxLayout *layout1 = new TQHBoxLayout( 0, 0, 6 ); TQLabel *textLabel1 = new TQLabel( m_tab3 ); textLabel1->setText( i18n( "Name of frameset:" ) ); - tqlayout1->addWidget( textLabel1 ); + layout1->addWidget( textLabel1 ); m_eFrameSetName = new TQLineEdit( m_tab3 ); - tqlayout1->addWidget( m_eFrameSetName ); - tabLayout->addLayout( tqlayout1 ); + layout1->addWidget( m_eFrameSetName ); + tabLayout->addLayout( layout1 ); int amount=0; // now fill the gui. @@ -1290,10 +1290,10 @@ void KWFrameDia::setupTab6() // Border style TQGroupBox *grp=new TQGroupBox( 0, Qt::Vertical, i18n( "Preview" ), m_tab6, "previewgrp" ); grid->addMultiCellWidget( grp , 0, 7, 1, 1 ); - grp->tqlayout()->setSpacing(KDialog::spacingHint()); - grp->tqlayout()->setMargin(KDialog::marginHint()); + grp->layout()->setSpacing(KDialog::spacingHint()); + grp->layout()->setMargin(KDialog::marginHint()); m_prev3 = new KoBorderPreview( grp ); - TQVBoxLayout *lay1 = new TQVBoxLayout( grp->tqlayout() ); + TQVBoxLayout *lay1 = new TQVBoxLayout( grp->layout() ); lay1->addWidget(m_prev3); connect( m_prev3, TQT_SIGNAL( choosearea(TQMouseEvent * ) ), @@ -2330,7 +2330,7 @@ bool KWFrameDia::applyChanges() void KWFrameDia::updateFrames() { m_doc->updateAllFrames(); - m_doc->tqlayout(); + m_doc->layout(); m_doc->repaintAllViews(); } |