summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/sms/services/gsmlib.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/protocols/sms/services/gsmlib.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/sms/services/gsmlib.cpp')
-rw-r--r--kopete/protocols/sms/services/gsmlib.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kopete/protocols/sms/services/gsmlib.cpp b/kopete/protocols/sms/services/gsmlib.cpp
index 7f129473..35d7c274 100644
--- a/kopete/protocols/sms/services/gsmlib.cpp
+++ b/kopete/protocols/sms/services/gsmlib.cpp
@@ -67,10 +67,10 @@ void GSMLibEvent::setSubType(GSMLibEvent::SubType t)
}
/////////////////////////////////////////////////////////////////////
-GSMLibThread::GSMLibThread(TQString dev, GSMLib* parent)
+GSMLibThread::GSMLibThread(TQString dev, GSMLib* tqparent)
{
m_device = dev;
- m_parent = parent;
+ m_parent = tqparent;
m_run = true;
m_MeTa = NULL;
}
@@ -308,7 +308,7 @@ void GSMLib::saveConfig()
{
KConfigGroup* c = m_account->configGroup();
- c->writeEntry(TQString("%1:%2").arg("GSMLib").arg("Device"), m_device);
+ c->writeEntry(TQString("%1:%2").tqarg("GSMLib").tqarg("Device"), m_device);
}
}
@@ -320,8 +320,8 @@ void GSMLib::loadConfig()
TQString temp;
KConfigGroup* c = m_account->configGroup();
- temp = c->readEntry(TQString("%1:%2").arg("GSMLib").arg("Device"), TQString::null);
- if( temp != TQString::null )
+ temp = c->readEntry(TQString("%1:%2").tqarg("GSMLib").tqarg("Device"), TQString());
+ if( temp != TQString() )
m_device = temp;
}
}
@@ -348,12 +348,12 @@ void GSMLib::disconnect()
}
-void GSMLib::setWidgetContainer(TQWidget* parent, TQGridLayout* layout)
+void GSMLib::setWidgetContainer(TQWidget* tqparent, TQGridLayout* tqlayout)
{
- m_parent = parent;
- m_layout = layout;
- TQWidget *configWidget = configureWidget(parent);
- layout->addMultiCellWidget(configWidget, 0, 1, 0, 1);
+ m_parent = tqparent;
+ m_layout = tqlayout;
+ TQWidget *configWidget = configureWidget(tqparent);
+ tqlayout->addMultiCellWidget(configWidget, 0, 1, 0, 1);
configWidget->show();
}
@@ -362,11 +362,11 @@ void GSMLib::send(const Kopete::Message& msg)
m_thread->send(msg);
}
-TQWidget* GSMLib::configureWidget(TQWidget* parent)
+TQWidget* GSMLib::configureWidget(TQWidget* tqparent)
{
if (prefWidget == 0L)
- prefWidget = new GSMLibPrefsUI(parent);
+ prefWidget = new GSMLibPrefsUI(tqparent);
loadConfig();
prefWidget->device->setURL(m_device);
@@ -419,7 +419,7 @@ void GSMLib::customEvent(TQCustomEvent* e)
TQString text = ge->Text;
// Locate a contact
- SMSContact* contact = static_cast<SMSContact*>( m_account->contacts().find( nr ));
+ SMSContact* contact = static_cast<SMSContact*>( m_account->contacts().tqfind( nr ));
if ( contact==NULL )
{
// No contact found, make a new one
@@ -444,7 +444,7 @@ void GSMLib::customEvent(TQCustomEvent* e)
const TQString& GSMLib::description()
{
TQString url = "http://www.pxh.de/fs/gsmlib/";
- m_description = i18n("<qt>GSMLib is a library (and utilities) for sending SMS via a GSM device. The program can be found on <a href=\"%1\">%1</a></qt>").arg(url).arg(url);
+ m_description = i18n("<qt>GSMLib is a library (and utilities) for sending SMS via a GSM device. The program can be found on <a href=\"%1\">%1</a></qt>").tqarg(url).tqarg(url);
return m_description;
}