summaryrefslogtreecommitdiffstats
path: root/kaddressbook/editors/imeditorwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/editors/imeditorwidget.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-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 'kaddressbook/editors/imeditorwidget.cpp')
-rw-r--r--kaddressbook/editors/imeditorwidget.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kaddressbook/editors/imeditorwidget.cpp b/kaddressbook/editors/imeditorwidget.cpp
index 30c3ca981..3e306a03b 100644
--- a/kaddressbook/editors/imeditorwidget.cpp
+++ b/kaddressbook/editors/imeditorwidget.cpp
@@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include <tqlistview.h>
@@ -43,9 +43,9 @@
#include "imeditorwidget.h"
-IMAddressLVI::IMAddressLVI( KListView *parent, KPluginInfo *protocol,
+IMAddressLVI::IMAddressLVI( KListView *tqparent, KPluginInfo *protocol,
const TQString &address, const IMContext &context )
- : KListViewItem( parent )
+ : KListViewItem( tqparent )
{
setProtocol( protocol );
setAddress( address );
@@ -140,8 +140,8 @@ void IMAddressLVI::activate()
/*===========================================================================*/
-IMEditorWidget::IMEditorWidget( TQWidget *parent, const TQString &preferredIM, const char *name )
- : KDialogBase( parent, name, false, i18n( "Edit Instant Messenging Address" ),
+IMEditorWidget::IMEditorWidget( TQWidget *tqparent, const TQString &preferredIM, const char *name )
+ : KDialogBase( tqparent, name, false, i18n( "Edit Instant Messenging Address" ),
Help | Ok | Cancel, Ok, false ),
mReadOnly( false )
{
@@ -351,7 +351,7 @@ void IMEditorWidget::slotAdd()
mPreferred = addressWid->address();
}
- if ( mChangedProtocols.find( addressWid->protocol() ) == mChangedProtocols.end() )
+ if ( mChangedProtocols.tqfind( addressWid->protocol() ) == mChangedProtocols.end() )
mChangedProtocols.append( addressWid->protocol() );
mWidget->lvAddresses->sort();
@@ -388,7 +388,7 @@ void IMEditorWidget::slotEdit()
}
// the entry for the protocol of the current address has changed
- if ( mChangedProtocols.find( current->protocol() ) == mChangedProtocols.end() ) {
+ if ( mChangedProtocols.tqfind( current->protocol() ) == mChangedProtocols.end() ) {
mChangedProtocols.append( current->protocol() );
}
// update protocol - has another protocol gained an address?
@@ -396,7 +396,7 @@ void IMEditorWidget::slotEdit()
modified = true;
// this proto is losing an entry
current->setProtocol( addressWid->protocol() );
- if ( mChangedProtocols.find( current->protocol() ) == mChangedProtocols.end() )
+ if ( mChangedProtocols.tqfind( current->protocol() ) == mChangedProtocols.end() )
mChangedProtocols.append( current->protocol() );
}
@@ -431,7 +431,7 @@ void IMEditorWidget::slotDelete()
while( it.current() ) {
if ( it.current()->isSelected() ) {
IMAddressLVI * current = static_cast<IMAddressLVI*>( *it );
- if ( mChangedProtocols.find( current->protocol() ) == mChangedProtocols.end() )
+ if ( mChangedProtocols.tqfind( current->protocol() ) == mChangedProtocols.end() )
mChangedProtocols.append( current->protocol() );
if ( current->preferred() )
@@ -477,12 +477,12 @@ KPluginInfo * IMEditorWidget::protocolFromString( const TQString &fieldValue ) c
void IMEditorWidget::splitField( const TQString &str, TQString &app, TQString &name, TQString &value )
{
- int colon = str.find( ':' );
+ int colon = str.tqfind( ':' );
if ( colon != -1 ) {
TQString tmp = str.left( colon );
value = str.mid( colon + 1 );
- int dash = tmp.find( '-' );
+ int dash = tmp.tqfind( '-' );
if ( dash != -1 ) {
app = tmp.left( dash );
name = tmp.mid( dash + 1 );