diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/managesievescriptsdialog.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/managesievescriptsdialog.cpp')
-rw-r--r-- | kmail/managesievescriptsdialog.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/kmail/managesievescriptsdialog.cpp b/kmail/managesievescriptsdialog.cpp index dc8e42f44..b3018fea8 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 * parent, const char * name ) +KMail::ManageSieveScriptsDialog::ManageSieveScriptsDialog( TQWidget * tqparent, const char * name ) : KDialogBase( Plain, i18n( "Manage Sieve Scripts" ), Close, Close, - parent, name, false ), + tqparent, 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 * parent = mJobs[job]; - if ( !parent ) + TQCheckListItem * tqparent = mJobs[job]; + if ( !tqparent ) return; mJobs.remove( job ); - parent->setOpen( true ); + tqparent->setOpen( true ); if ( success ) return; - TQListViewItem * item = new TQListViewItem( parent, i18n( "Failed to fetch the list of scripts" ) ); + TQListViewItem * item = new TQListViewItem( tqparent, i18n( "Failed to fetch the list of scripts" ) ); item->setEnabled( false ); } void KMail::ManageSieveScriptsDialog::slotItem( KMail::SieveJob * job, const TQString & filename, bool isActive ) { - TQCheckListItem * parent = mJobs[job]; - if ( !parent ) + TQCheckListItem * tqparent = mJobs[job]; + if ( !tqparent ) return; - TQCheckListItem * item = new TQCheckListItem( parent, filename, TQCheckListItem::RadioButton ); + TQCheckListItem * item = new TQCheckListItem( tqparent, filename, TQCheckListItem::RadioButton ); if ( isActive ) { item->setOn( true ); - mSelectedItems[parent] = item; + mSelectedItems[tqparent] = item; } } @@ -178,12 +178,12 @@ void KMail::ManageSieveScriptsDialog::slotDeactivateScript() { if ( !mContextMenuItem ) return; - TQCheckListItem * parent = qcli_cast( mContextMenuItem->parent() ); - if ( !parent ) + TQCheckListItem * tqparent = qcli_cast( mContextMenuItem->tqparent() ); + if ( !tqparent ) return; if ( mContextMenuItem->isOn()) { - mSelectedItems[parent] = mContextMenuItem; - changeActiveScript( parent,false ); + mSelectedItems[tqparent] = mContextMenuItem; + changeActiveScript( tqparent,false ); } } @@ -191,12 +191,12 @@ void KMail::ManageSieveScriptsDialog::slotSelectionChanged( TQListViewItem * i ) TQCheckListItem * item = qcli_cast( i ); if ( !item ) return; - TQCheckListItem * parent = qcli_cast( item->parent() ); - if ( !parent ) + TQCheckListItem * tqparent = qcli_cast( item->tqparent() ); + if ( !tqparent ) return; - if ( item->isOn() && mSelectedItems[parent] != item ) { - mSelectedItems[parent] = item; - changeActiveScript( parent,true ); + if ( item->isOn() && mSelectedItems[tqparent] != item ) { + mSelectedItems[tqparent] = item; + changeActiveScript( tqparent,true ); } } @@ -240,14 +240,14 @@ void KMail::ManageSieveScriptsDialog::slotDeleteScript() { if ( !mContextMenuItem->depth() ) return; - TQCheckListItem * parent = qcli_cast( mContextMenuItem->parent() ); - if ( !parent ) + TQCheckListItem * tqparent = qcli_cast( mContextMenuItem->tqparent() ); + if ( !tqparent ) return; - if ( !mUrls.count( parent ) ) + if ( !mUrls.count( tqparent ) ) return; - KURL u = mUrls[parent]; + KURL u = mUrls[tqparent]; if ( u.isEmpty() ) return; @@ -268,10 +268,10 @@ void KMail::ManageSieveScriptsDialog::slotEditScript() { return; if ( !mContextMenuItem->depth() ) return; - TQCheckListItem * parent = qcli_cast( mContextMenuItem->parent() ); - if ( !mUrls.count( parent ) ) + TQCheckListItem * tqparent = qcli_cast( mContextMenuItem->tqparent() ); + if ( !mUrls.count( tqparent ) ) return; - KURL url = mUrls[parent]; + KURL url = mUrls[tqparent]; 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->parent() ); + mContextMenuItem = qcli_cast( mContextMenuItem->tqparent() ); if ( !mContextMenuItem ) return; @@ -308,11 +308,11 @@ void KMail::ManageSieveScriptsDialog::slotNewScript() { (void) new TQCheckListItem( mContextMenuItem, name, TQCheckListItem::RadioButton ); mCurrentURL = u; - slotGetResult( 0, true, TQString::null, false ); + slotGetResult( 0, true, TQString(), false ); } -KMail::SieveEditor::SieveEditor( TQWidget * parent, const char * name ) - : KDialogBase( Plain, i18n( "Edit Sieve Script" ), Ok|Cancel, Ok, parent, name ) +KMail::SieveEditor::SieveEditor( TQWidget * tqparent, const char * name ) + : KDialogBase( Plain, i18n( "Edit Sieve Script" ), Ok|Cancel, Ok, tqparent, name ) { TQVBoxLayout * vlay = new TQVBoxLayout( plainPage(), 0, spacingHint() ); mTextEdit = new TQTextEdit( plainPage() ); |