diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:14:12 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:14:12 -0600 |
commit | fd5d099065a748cac49e20a13481f85666c53c71 (patch) | |
tree | a0f1672cd88eb0e69b9ddc2ed9b08ecd98538bd3 /kmail/customtemplates.cpp | |
parent | b440a9c608596cd88efdb3bfa4661c5e37efbe4b (diff) | |
download | tdepim-fd5d099065a748cac49e20a13481f85666c53c71.tar.gz tdepim-fd5d099065a748cac49e20a13481f85666c53c71.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kmail/customtemplates.cpp')
-rw-r--r-- | kmail/customtemplates.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kmail/customtemplates.cpp b/kmail/customtemplates.cpp index 14bed9cfe..00d14cc8b 100644 --- a/kmail/customtemplates.cpp +++ b/kmail/customtemplates.cpp @@ -89,8 +89,8 @@ CustomTemplates::CustomTemplates( TQWidget *parent, const char *name ) connect( mType, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotTypeActivated( int ) ) ); - connect( mKeyButton, TQT_SIGNAL( capturedShortcut( const KShortcut& ) ), - this, TQT_SLOT( slotShortcutCaptured( const KShortcut& ) ) ); + connect( mKeyButton, TQT_SIGNAL( capturedShortcut( const TDEShortcut& ) ), + this, TQT_SLOT( slotShortcutCaptured( const TDEShortcut& ) ) ); mReplyPix = KIconLoader().loadIcon( "mail_reply", KIcon::Small ); mReplyAllPix = KIconLoader().loadIcon( "mail_replyall", KIcon::Small ); @@ -201,7 +201,7 @@ void CustomTemplates::load() CTemplates t(*it); // TQString typeStr = indexToType( t.type() ); TQString typeStr; - KShortcut shortcut( t.shortcut() ); + TDEShortcut shortcut( t.shortcut() ); CustomTemplateItem *vitem = new CustomTemplateItem( *it, t.content(), shortcut, @@ -291,7 +291,7 @@ void CustomTemplates::slotAddClicked() if ( !str.isEmpty() ) { CustomTemplateItem *vitem = mItemList[ str ]; if ( !vitem ) { - vitem = new CustomTemplateItem( str, "", KShortcut::null(), TUniversal, + vitem = new CustomTemplateItem( str, "", TDEShortcut::null(), TUniversal, TQString(), TQString() ); mItemList.insert( str, vitem ); TQListViewItem *item = @@ -357,7 +357,7 @@ void CustomTemplates::slotListSelectionChanged() mEdit->clear(); mToEdit->clear(); mCCEdit->clear(); - mKeyButton->setShortcut( KShortcut::null(), false ); + mKeyButton->setShortcut( TDEShortcut::null(), false ); mType->setCurrentItem( 0 ); } } @@ -401,9 +401,9 @@ void CustomTemplates::slotTypeActivated( int index ) setRecipientsEditsEnabled( false ); } -void CustomTemplates::slotShortcutCaptured( const KShortcut &shortcut ) +void CustomTemplates::slotShortcutCaptured( const TDEShortcut &shortcut ) { - KShortcut sc( shortcut ); + TDEShortcut sc( shortcut ); if ( sc == mKeyButton->shortcut() ) return; if ( sc.isNull() || sc.toString().isEmpty() ) @@ -425,7 +425,7 @@ void CustomTemplates::slotShortcutCaptured( const KShortcut &shortcut ) == KMessageBox::Yes ); if ( assign ) { - (*it)->mShortcut = KShortcut::null(); + (*it)->mShortcut = TDEShortcut::null(); } customused = true; } |