From 79e5d6be76392920c148aa615d9e3504f3388996 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 21 Dec 2011 14:21:13 -0600 Subject: Rename obsolete tq methods to standard names (cherry picked from commit ebbee358abafa1b5166404c6fe5cc44ae2837a57) --- kpovmodeler/pmviewlayoutmanager.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kpovmodeler/pmviewlayoutmanager.cpp') diff --git a/kpovmodeler/pmviewlayoutmanager.cpp b/kpovmodeler/pmviewlayoutmanager.cpp index e6f9148c..fe3a031d 100644 --- a/kpovmodeler/pmviewlayoutmanager.cpp +++ b/kpovmodeler/pmviewlayoutmanager.cpp @@ -443,7 +443,7 @@ void PMViewLayout::normalize( ) PMViewLayout PMViewLayout::extractViewLayout( PMShell* shell ) { - PMViewLayout tqlayout; + PMViewLayout layout; TQValueList< TQValueList< PMViewLayoutEntry > > cols; cols.append( TQValueList< PMViewLayoutEntry >( ) ); @@ -457,7 +457,7 @@ PMViewLayout PMViewLayout::extractViewLayout( PMShell* shell ) for( cit = cols.begin( ); cit != cols.end( ); ++cit ) for( eit = ( *cit ).begin( ); eit != ( *cit ).end( ); ++eit ) - tqlayout.addEntry( *eit ); + layout.addEntry( *eit ); // find floating widgets TQPtrList list; @@ -495,11 +495,11 @@ PMViewLayout PMViewLayout::extractViewLayout( PMShell* shell ) invalid = true; if( !invalid ) - tqlayout.addEntry( e ); + layout.addEntry( e ); } } - return tqlayout; + return layout; } void PMViewLayout::recursiveExtractColumns( @@ -666,7 +666,7 @@ void PMViewLayoutManager::loadData( ) TQString fileName = locate( "data", "kpovmodeler/viewlayouts.xml" ); if( fileName.isEmpty( ) ) { - // Generate a default tqlayout + // Generate a default layout // I have a feeling this shouldn't be here but hey, it works for now // TODO Must find a way to move this cleanly to PMShell PMViewLayout a; @@ -763,7 +763,7 @@ void PMViewLayoutManager::saveData( ) { TQDomElement l; - l = doc.createElement( "viewtqlayout" ); + l = doc.createElement( "viewlayout" ); ( *it ).saveData( l, doc ); e.appendChild( l ); } @@ -810,7 +810,7 @@ void PMViewLayoutManager::displayLayout( const TQString& name, PMShell* shell ) flist.remove( ); } } - // Create the new tqlayout + // Create the new layout v_layout->displayLayout( shell ); m_layoutDisplayed = true; } @@ -879,7 +879,7 @@ PMSaveViewLayoutDialog::PMSaveViewLayoutDialog( PMShell* parent, TQWidget* w = new TQWidget( this ); TQVBoxLayout* vl = new TQVBoxLayout( w, 0, KDialog::spacingHint( ) ); - TQLabel* l = new TQLabel( i18n( "Enter view tqlayout name:" ), w ); + TQLabel* l = new TQLabel( i18n( "Enter view layout name:" ), w ); vl->addWidget( l ); m_pLayoutName = new TQLineEdit( w ); @@ -907,13 +907,13 @@ void PMSaveViewLayoutDialog::slotOk( ) TQString name = m_pLayoutName->text( ); PMViewLayoutManager* m = PMViewLayoutManager::theManager( ); - PMViewLayout* tqlayout = m->findLayout( name ); + PMViewLayout* layout = m->findLayout( name ); PMViewLayout newLayout = PMViewLayout::extractViewLayout( m_pShell ); newLayout.setName( name ); - if( tqlayout ) - *tqlayout = newLayout; + if( layout ) + *layout = newLayout; else m->addLayout( newLayout ); -- cgit v1.2.3