summaryrefslogtreecommitdiffstats
path: root/kandy/src/mobilegui.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 /kandy/src/mobilegui.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 'kandy/src/mobilegui.cpp')
-rw-r--r--kandy/src/mobilegui.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kandy/src/mobilegui.cpp b/kandy/src/mobilegui.cpp
index fec40b7ff..08cf54cc7 100644
--- a/kandy/src/mobilegui.cpp
+++ b/kandy/src/mobilegui.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 <time.h>
@@ -148,7 +148,7 @@ class AddressSyncer
};
-class PhoneBookItem : public QCheckListItem
+class PhoneBookItem : public TQCheckListItem
{
public:
PhoneBookItem( TQListView *v ) :
@@ -176,21 +176,21 @@ class PhoneBookItem : public QCheckListItem
/*
- * Constructs a MobileGui which is a child of 'parent', with the
+ * Constructs a MobileGui which is a child of 'tqparent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
MobileGui::MobileGui( CommandScheduler *scheduler, KandyPrefs *kprefs,
- TQWidget* parent, const char* name, WFlags fl ) :
- DCOPObject( "KandyIface" ), MobileGui_base( parent, name, fl )
+ TQWidget* tqparent, const char* name, WFlags fl ) :
+ DCOPObject( "KandyIface" ), MobileGui_base( tqparent, name, fl )
{
// Setup links to related classes
mScheduler = scheduler;
mSyncer = new AddressSyncer;
mPrefs = kprefs;
- mparent = parent;
+ mtqparent = tqparent;
// Setup mobile phone specific data
mMobManufacturer = "";
@@ -922,7 +922,7 @@ void MobileGui::writeKabc()
*fields = TQStringList::split( ',', name );
if ( fields->count() > 1 ) {
- // Name string tqcontains comma separated entry so that we
+ // Name string contains comma separated entry so that we
// need to build family and given names out of them.
TQString givenName = "";
@@ -933,7 +933,7 @@ void MobileGui::writeKabc()
givenName += stripWhiteSpaces( (*fields)[ i ] ) + " ";
entry.setGivenName( stripWhiteSpaces( givenName ) );
} else
- // Name string tqcontains only one string without comma.
+ // Name string contains only one string without comma.
entry.setFamilyName( stripWhiteSpaces( name ) );
entry.insertPhoneNumber( KABC::PhoneNumber( phoneNumber, phoneType ) );
@@ -954,7 +954,7 @@ void MobileGui::writeKabc()
}
-void MobileGui::refreshStatus()
+void MobileGui::refreshtqStatus()
{
mScheduler->executeId( "+cbc" );
mScheduler->executeId( "+csq" );
@@ -1453,7 +1453,7 @@ void MobileGui::toggleConnection()
emit connectModem();
readModelInformation();
- refreshStatus();
+ refreshtqStatus();
mConnectButton->setText( tr2i18n( "Disconnect" ) );
PushButton1->setEnabled( true );
@@ -1463,7 +1463,7 @@ void MobileGui::toggleConnection()
setKabState( UNLOADED );
setMobState( UNLOADED );
- ((MobileMain *) mparent)->statusBar()->changeItem( i18n(" Connected "), 1 );
+ ((MobileMain *) mtqparent)->statusBar()->changeItem( i18n(" Connected "), 1 );
} else {
warnKabState( UNLOADED );
@@ -1510,7 +1510,7 @@ void MobileGui::disconnectGUI()
mPBIndexOccupied.resize( 0, false );
- ((MobileMain *) mparent)->statusBar()->changeItem( i18n(" Disconnected "),
+ ((MobileMain *) mtqparent)->statusBar()->changeItem( i18n(" Disconnected "),
1 );
}
@@ -1561,7 +1561,7 @@ void MobileGui::warnKabState( ABState newState )
{
if ( ( mKabState == MODIFIED ) && ( newState != MODIFIED ) ) {
TQString text = "<qt><b>" + i18n( "Warning" ) + "</b><br>";
- text += i18n( "The KDE address book tqcontains unsaved changes." ) +
+ text += i18n( "The KDE address book contains unsaved changes." ) +
"<br></qt>";
TQMessageBox *msg = new TQMessageBox( i18n( "Unsaved Changes" ), text,
@@ -1646,7 +1646,7 @@ bool MobileGui::warnMobState( ABState newState )
if ( ( mMobState == MODIFIED ) && ( newState != MODIFIED ) )
{
TQString text = "<qt><b>" + i18n( "Warning" ) + "</b><br>";
- text += i18n( "The mobile phone book tqcontains unsaved changes." ) +
+ text += i18n( "The mobile phone book contains unsaved changes." ) +
"<br></qt>";
TQMessageBox *msg = new TQMessageBox( i18n( "Unsaved Changes" ), text,