summaryrefslogtreecommitdiffstats
path: root/libkdepim/kcmdesignerfields.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/kcmdesignerfields.cpp')
-rw-r--r--libkdepim/kcmdesignerfields.cpp22
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() );
}