summaryrefslogtreecommitdiffstats
path: root/kmail/managesievescriptsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/managesievescriptsdialog.cpp')
-rw-r--r--kmail/managesievescriptsdialog.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kmail/managesievescriptsdialog.cpp b/kmail/managesievescriptsdialog.cpp
index e306c7772..317429d52 100644
--- a/kmail/managesievescriptsdialog.cpp
+++ b/kmail/managesievescriptsdialog.cpp
@@ -29,9 +29,9 @@ inline const TQCheckListItem * qcli_cast( const TQListViewItem * lvi ) {
return lvi && lvi->rtti() == 1 ? static_cast<const TQCheckListItem*>( lvi ) : 0 ;
}
-KMail::ManageSieveScriptsDialog::ManageSieveScriptsDialog( TQWidget * tqparent, const char * name )
+KMail::ManageSieveScriptsDialog::ManageSieveScriptsDialog( TQWidget * parent, const char * name )
: KDialogBase( Plain, i18n( "Manage Sieve Scripts" ), Close, Close,
- tqparent, name, false ),
+ parent, name, false ),
mSieveEditor( 0 ),
mContextMenuItem( 0 ),
mWasActive( false )
@@ -126,29 +126,29 @@ void KMail::ManageSieveScriptsDialog::slotRefresh() {
}
void KMail::ManageSieveScriptsDialog::slotResult( KMail::SieveJob * job, bool success, const TQString &, bool ) {
- TQCheckListItem * tqparent = mJobs[job];
- if ( !tqparent )
+ TQCheckListItem * parent = mJobs[job];
+ if ( !parent )
return;
mJobs.remove( job );
- tqparent->setOpen( true );
+ parent->setOpen( true );
if ( success )
return;
- TQListViewItem * item = new TQListViewItem( tqparent, i18n( "Failed to fetch the list of scripts" ) );
+ TQListViewItem * item = new TQListViewItem( parent, i18n( "Failed to fetch the list of scripts" ) );
item->setEnabled( false );
}
void KMail::ManageSieveScriptsDialog::slotItem( KMail::SieveJob * job, const TQString & filename, bool isActive ) {
- TQCheckListItem * tqparent = mJobs[job];
- if ( !tqparent )
+ TQCheckListItem * parent = mJobs[job];
+ if ( !parent )
return;
- TQCheckListItem * item = new TQCheckListItem( tqparent, filename, TQCheckListItem::RadioButton );
+ TQCheckListItem * item = new TQCheckListItem( parent, filename, TQCheckListItem::RadioButton );
if ( isActive ) {
item->setOn( true );
- mSelectedItems[tqparent] = item;
+ mSelectedItems[parent] = item;
}
}
@@ -178,12 +178,12 @@ void KMail::ManageSieveScriptsDialog::slotDeactivateScript() {
if ( !mContextMenuItem )
return;
- TQCheckListItem * tqparent = qcli_cast( mContextMenuItem->tqparent() );
- if ( !tqparent )
+ TQCheckListItem * parent = qcli_cast( mContextMenuItem->parent() );
+ if ( !parent )
return;
if ( mContextMenuItem->isOn()) {
- mSelectedItems[tqparent] = mContextMenuItem;
- changeActiveScript( tqparent,false );
+ mSelectedItems[parent] = mContextMenuItem;
+ changeActiveScript( parent,false );
}
}
@@ -191,12 +191,12 @@ void KMail::ManageSieveScriptsDialog::slotSelectionChanged( TQListViewItem * i )
TQCheckListItem * item = qcli_cast( i );
if ( !item )
return;
- TQCheckListItem * tqparent = qcli_cast( item->tqparent() );
- if ( !tqparent )
+ TQCheckListItem * parent = qcli_cast( item->parent() );
+ if ( !parent )
return;
- if ( item->isOn() && mSelectedItems[tqparent] != item ) {
- mSelectedItems[tqparent] = item;
- changeActiveScript( tqparent,true );
+ if ( item->isOn() && mSelectedItems[parent] != item ) {
+ mSelectedItems[parent] = item;
+ changeActiveScript( parent,true );
}
}
@@ -240,14 +240,14 @@ void KMail::ManageSieveScriptsDialog::slotDeleteScript() {
if ( !mContextMenuItem->depth() )
return;
- TQCheckListItem * tqparent = qcli_cast( mContextMenuItem->tqparent() );
- if ( !tqparent )
+ TQCheckListItem * parent = qcli_cast( mContextMenuItem->parent() );
+ if ( !parent )
return;
- if ( !mUrls.count( tqparent ) )
+ if ( !mUrls.count( parent ) )
return;
- KURL u = mUrls[tqparent];
+ KURL u = mUrls[parent];
if ( u.isEmpty() )
return;
@@ -268,10 +268,10 @@ void KMail::ManageSieveScriptsDialog::slotEditScript() {
return;
if ( !mContextMenuItem->depth() )
return;
- TQCheckListItem * tqparent = qcli_cast( mContextMenuItem->tqparent() );
- if ( !mUrls.count( tqparent ) )
+ TQCheckListItem * parent = qcli_cast( mContextMenuItem->parent() );
+ if ( !mUrls.count( parent ) )
return;
- KURL url = mUrls[tqparent];
+ KURL url = mUrls[parent];
if ( url.isEmpty() )
return;
url.setFileName( mContextMenuItem->text( 0 ) );
@@ -285,7 +285,7 @@ void KMail::ManageSieveScriptsDialog::slotNewScript() {
if ( !mContextMenuItem )
return;
if ( mContextMenuItem->depth() )
- mContextMenuItem = qcli_cast( mContextMenuItem->tqparent() );
+ mContextMenuItem = qcli_cast( mContextMenuItem->parent() );
if ( !mContextMenuItem )
return;
@@ -311,8 +311,8 @@ void KMail::ManageSieveScriptsDialog::slotNewScript() {
slotGetResult( 0, true, TQString(), false );
}
-KMail::SieveEditor::SieveEditor( TQWidget * tqparent, const char * name )
- : KDialogBase( Plain, i18n( "Edit Sieve Script" ), Ok|Cancel, Ok, tqparent, name )
+KMail::SieveEditor::SieveEditor( TQWidget * parent, const char * name )
+ : KDialogBase( Plain, i18n( "Edit Sieve Script" ), Ok|Cancel, Ok, parent, name )
{
TQVBoxLayout * vlay = new TQVBoxLayout( plainPage(), 0, spacingHint() );
mTextEdit = new TQTextEdit( plainPage() );