diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 36a36a5c1015aa0d03f4515c401e907ddb9d6291 (patch) | |
tree | 0212ba6d2c749043134005a41f2bd0379619d40f /libkdepim/kcmdesignerfields.cpp | |
parent | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (diff) | |
download | tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.tar.gz tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/kcmdesignerfields.cpp')
-rw-r--r-- | libkdepim/kcmdesignerfields.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libkdepim/kcmdesignerfields.cpp b/libkdepim/kcmdesignerfields.cpp index bc7ddb747..dbe2faca2 100644 --- a/libkdepim/kcmdesignerfields.cpp +++ b/libkdepim/kcmdesignerfields.cpp @@ -56,8 +56,8 @@ using namespace KPIM; class PageItem : public TQCheckListItem { public: - PageItem( TQListView *tqparent, const TQString &path ) - : TQCheckListItem( tqparent, "", TQCheckListItem::CheckBox ), + PageItem( TQListView *parent, const TQString &path ) + : TQCheckListItem( parent, "", TQCheckListItem::CheckBox ), mPath( path ), mIsActive( false ) { mName = path.mid( path.findRev( '/' ) + 1 ); @@ -126,8 +126,8 @@ class PageItem : public TQCheckListItem bool mIsActive; }; -KCMDesignerFields::KCMDesignerFields( TQWidget *tqparent, const char *name ) - : KCModule( tqparent, name ) +KCMDesignerFields::KCMDesignerFields( TQWidget *parent, const char *name ) + : KCModule( parent, name ) { TQTimer::singleShot( 0, this, TQT_SLOT( delayedInit() ) ); @@ -174,7 +174,7 @@ void KCMDesignerFields::deleteFile() { TQListViewItem *item = mPageView->selectedItem(); if ( item ) { - PageItem *pageItem = static_cast<PageItem*>( item->tqparent() ? item->tqparent() : item ); + PageItem *pageItem = static_cast<PageItem*>( item->parent() ? item->parent() : item ); if (KMessageBox::warningContinueCancel(this, i18n( "<qt>Do you really want to delete '<b>%1</b>'?</qt>").tqarg( pageItem->text(0) ), "", KStdGuiItem::del() ) == KMessageBox::Continue) @@ -215,7 +215,7 @@ void KCMDesignerFields::loadActivePages(const TQStringList& ai) { TQListViewItemIterator it( mPageView ); while ( it.current() ) { - if ( it.current()->tqparent() == 0 ) { + if ( it.current()->parent() == 0 ) { PageItem *item = static_cast<PageItem*>( it.current() ); if ( ai.find( item->name() ) != ai.end() ) { item->setOn( true ); @@ -239,7 +239,7 @@ TQStringList KCMDesignerFields::saveActivePages() TQStringList activePages; while ( it.current() ) { - if ( it.current()->tqparent() == 0 ) { + if ( it.current()->parent() == 0 ) { PageItem *item = static_cast<PageItem*>( it.current() ); activePages.append( item->name() ); } @@ -353,7 +353,7 @@ void KCMDesignerFields::updatePreview( TQListViewItem *item ) bool widgetItemSelected = false; if ( item ) { - if ( item->tqparent() ) { + if ( item->parent() ) { TQString details = TQString( "<qt><table>" "<tr><td align=\"right\"><b>%1</b></td><td>%2</td></tr>" "<tr><td align=\"right\"><b>%3</b></td><td>%4</td></tr>" @@ -371,7 +371,7 @@ void KCMDesignerFields::updatePreview( TQListViewItem *item ) mPageDetails->setText( details ); - PageItem *pageItem = static_cast<PageItem*>( item->tqparent() ); + PageItem *pageItem = static_cast<PageItem*>( item->parent() ); mPagePreview->setPixmap( pageItem->preview() ); } else { mPageDetails->setText( TQString() ); @@ -394,7 +394,7 @@ void KCMDesignerFields::updatePreview( TQListViewItem *item ) void KCMDesignerFields::itemClicked( TQListViewItem *item ) { - if ( !item || item->tqparent() != 0 ) + if ( !item || item->parent() != 0 ) return; PageItem *pageItem = static_cast<PageItem*>( item ); @@ -420,7 +420,7 @@ void KCMDesignerFields::startDesigner() TQListViewItem *item = mPageView->selectedItem(); if ( item ) { - PageItem *pageItem = static_cast<PageItem*>( item->tqparent() ? item->tqparent() : item ); + PageItem *pageItem = static_cast<PageItem*>( item->parent() ? item->parent() : item ); cmdLine += " " + KProcess::quote( pageItem->path() ); } |