summaryrefslogtreecommitdiffstats
path: root/conduits/abbrowserconduit
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 00:37:32 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 00:37:32 +0000
commitf6f9c296c3f9d39a8c3d0ee64a542a47f450be28 (patch)
treed38fce8091ce66977004a5cb115768c7810aee30 /conduits/abbrowserconduit
parente340db64991a06761aa6395ffe760b53e4c1dfbc (diff)
downloadkpilot-f6f9c296c3f9d39a8c3d0ee64a542a47f450be28.tar.gz
kpilot-f6f9c296c3f9d39a8c3d0ee64a542a47f450be28.zip
TQt4 port kpilot
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1238903 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'conduits/abbrowserconduit')
-rw-r--r--conduits/abbrowserconduit/KPilotCustomFieldEditor.ui34
-rw-r--r--conduits/abbrowserconduit/Makefile.am2
-rw-r--r--conduits/abbrowserconduit/abbrowser-conduit.cc24
-rw-r--r--conduits/abbrowserconduit/abbrowser-conduit.h1
-rw-r--r--conduits/abbrowserconduit/abbrowser-setup.cc2
-rw-r--r--conduits/abbrowserconduit/kabcRecord.cc4
-rw-r--r--conduits/abbrowserconduit/kaddressbookConduit.ui60
-rw-r--r--conduits/abbrowserconduit/resolutionDialog.cc28
-rw-r--r--conduits/abbrowserconduit/resolutionDialog.h3
-rw-r--r--conduits/abbrowserconduit/resolutionDialog_base.ui18
10 files changed, 89 insertions, 87 deletions
diff --git a/conduits/abbrowserconduit/KPilotCustomFieldEditor.ui b/conduits/abbrowserconduit/KPilotCustomFieldEditor.ui
index 54782b8..63f6897 100644
--- a/conduits/abbrowserconduit/KPilotCustomFieldEditor.ui
+++ b/conduits/abbrowserconduit/KPilotCustomFieldEditor.ui
@@ -2,7 +2,7 @@
<class>KPilotCustomFields</class>
<comment>This form lets you edit the custom fields synced from PalmOS handhelds by the addressbook conduit of KPilot.</comment>
<author>Reinhold Kainhofer &lt;reinhold@kainhofer.com&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>KPILOT</cstring>
</property>
@@ -24,7 +24,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>mCustomFieldsGroups</cstring>
</property>
@@ -38,7 +38,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>mCustom3Label</cstring>
</property>
@@ -52,7 +52,7 @@
<string>&lt;qt&gt;Edit or enter the value of the third custom field here. Using KPilot, you can synchronize these values with the handheld's Address application custom fields.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>mCustom4Label</cstring>
</property>
@@ -66,7 +66,7 @@
<string>&lt;qt&gt;Edit or enter the value of the fourth custom field here. Using KPilot, you can synchronize these values with the handheld's Address application custom fields.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="1">
+ <widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>X_CUSTOM2</cstring>
</property>
@@ -74,7 +74,7 @@
<string>&lt;qt&gt;Edit or enter the value of the third custom field here. Using KPilot, you can synchronize these values with the handheld's Address application custom fields.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="1">
+ <widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>X_CUSTOM1</cstring>
</property>
@@ -82,7 +82,7 @@
<string>&lt;qt&gt;Edit or enter the value of the second custom field here. Using KPilot, you can synchronize these values with the handheld's Address application custom fields.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLineEdit" row="4" column="1">
+ <widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>X_CUSTOM3</cstring>
</property>
@@ -90,7 +90,7 @@
<string>&lt;qt&gt;Edit or enter the value of the fourth custom field here. Using KPilot, you can synchronize these values with the handheld's Address application custom fields.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>mCustom2Label</cstring>
</property>
@@ -104,7 +104,7 @@
<string>&lt;qt&gt;Edit or enter the value of the second custom field here. Using KPilot, you can synchronize these values with the handheld's Address application custom fields.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>mCustom1Label</cstring>
</property>
@@ -118,7 +118,7 @@
<string>&lt;qt&gt;Edit or enter the value of the first custom field here. Using KPilot, you can synchronize these values with the handheld's Address application custom fields.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>X_CUSTOM0</cstring>
</property>
@@ -134,7 +134,7 @@
<string>&lt;qt&gt;Edit or enter the value of the first custom field here. Using KPilot, you can synchronize these values with the handheld's Address application custom fields.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>mCustomFieldsExplanation</cstring>
</property>
@@ -147,7 +147,7 @@
</widget>
</grid>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>mMetaSyncGroup</cstring>
</property>
@@ -161,7 +161,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>mRecordIDLabel</cstring>
</property>
@@ -172,7 +172,7 @@
<cstring>X_RecordID</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="3">
+ <widget class="TQLabel" row="1" column="3">
<property name="name">
<cstring>mSyncFlagLabel</cstring>
</property>
@@ -217,7 +217,7 @@
</size>
</property>
</spacer>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="6">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>mMetaSyncSettingsWarning</cstring>
</property>
@@ -229,7 +229,7 @@ Do NOT change these values: doing so will almost certainly result in data loss w
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
- <widget class="QSpinBox" row="1" column="1">
+ <widget class="TQSpinBox" row="1" column="1">
<property name="name">
<cstring>X_RecordID</cstring>
</property>
@@ -240,7 +240,7 @@ Do NOT change these values: doing so will almost certainly result in data loss w
<number>2147483647</number>
</property>
</widget>
- <widget class="QSpinBox" row="1" column="4">
+ <widget class="TQSpinBox" row="1" column="4">
<property name="name">
<cstring>X_Flag</cstring>
</property>
diff --git a/conduits/abbrowserconduit/Makefile.am b/conduits/abbrowserconduit/Makefile.am
index 6985522..40c739a 100644
--- a/conduits/abbrowserconduit/Makefile.am
+++ b/conduits/abbrowserconduit/Makefile.am
@@ -11,7 +11,7 @@ conduit_address_la_SOURCES = \
abbrowser-setup.cc \
kabcRecord.cc \
abbrowser-conduit.cc
-conduit_address_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) $(LIB_QT) -lkdecore -lkio -lkdeui
+conduit_address_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) $(PISOCK_LIB) $(LIB_QT) -lkdecore -lkio -lkdeui
conduit_address_la_LIBADD = ../../lib/libkpilot.la -lkabc -lkabc_file
servicedir = $(kde_servicesdir)
diff --git a/conduits/abbrowserconduit/abbrowser-conduit.cc b/conduits/abbrowserconduit/abbrowser-conduit.cc
index e4f674a..7de5582 100644
--- a/conduits/abbrowserconduit/abbrowser-conduit.cc
+++ b/conduits/abbrowserconduit/abbrowser-conduit.cc
@@ -291,7 +291,7 @@ bool AbbrowserConduit::_loadAddressBook()
emit logError(i18n("You chose to sync with the file \"%1\", which "
"cannot be opened. Please make sure to supply a "
"valid file name in the conduit's configuration dialog. "
- "Aborting the conduit.").arg(AbbrowserSettings::fileName()));
+ "Aborting the conduit.").tqarg(AbbrowserSettings::fileName()));
KIO::NetAccess::removeTempFile(fABookFile);
stopTickle();
return false;
@@ -395,7 +395,7 @@ bool AbbrowserConduit::_saveAddressBook()
if(!KIO::NetAccess::upload(fABookFile, AbbrowserSettings::fileName(), 0L)) {
emit logError(i18n("An error occurred while uploading \"%1\". You can try to upload "
"the temporary local file \"%2\" manually")
- .arg(AbbrowserSettings::fileName()).arg(fABookFile));
+ .tqarg(AbbrowserSettings::fileName()).tqarg(fABookFile));
}
else {
KIO::NetAccess::removeTempFile(fABookFile);
@@ -476,7 +476,7 @@ void AbbrowserConduit::showPilotAddress(const PilotAddress *pilotAddress)
}
DEBUGKPILOT << fname << "\n"
<< pilotAddress->getTextRepresentation(
- fAddressAppInfo,Qt::PlainText) << endl;
+ fAddressAppInfo,TQt::PlainText) << endl;
}
@@ -762,7 +762,7 @@ void AbbrowserConduit::slotDeletedRecord()
recordid_t id = backupRec->id();
TQString uid = addresseeMap[id];
- Addressee e = aBook->tqfindByUid(uid);
+ Addressee e = aBook->findByUid(uid);
DEBUGKPILOT << fname << ": now looking at palm id: ["
<< id << "], kabc uid: [" << uid << "]." << endl;
@@ -779,7 +779,7 @@ void AbbrowserConduit::slotDeletedRecord()
DEBUGKPILOT << fname << ": no Addressee found for this id." << endl;
DEBUGKPILOT << fname << "\n"
<< backupAddr->getTextRepresentation(
- fAddressAppInfo,Qt::PlainText) << endl;
+ fAddressAppInfo,TQt::PlainText) << endl;
if (palmRec) {
DEBUGKPILOT << fname << ": deleting from database on palm." << endl;
@@ -1493,7 +1493,7 @@ TQString AbbrowserConduit::_smartMergeString(const TQString &pc, const TQString
// If this is a first sync, we don't have a backup record, so
if(isFirstSync() || backup.isEmpty()) {
- if (pc.isEmpty() && palm.isEmpty() ) return TQString::null;
+ if (pc.isEmpty() && palm.isEmpty() ) return TQString();
if(pc.isEmpty()) return palm;
if(palm.isEmpty()) return pc;
} else {
@@ -1512,7 +1512,7 @@ TQString AbbrowserConduit::_smartMergeString(const TQString &pc, const TQString
case SyncAction::ePreviousSyncOverrides: return backup; break;
default: break;
}
- return TQString::null;
+ return TQString();
}
@@ -1535,9 +1535,9 @@ bool AbbrowserConduit::_buildResolutionTable(ResolutionTable*tab, const Addresse
#define appendGen(desc, abfield, palmfield) \
tab->append(new ResolutionItem(desc, tab->fExistItems, \
- (!pcAddr.isEmpty())?(abfield):(TQString::null), \
- (palmAddr)?(palmAddr->palmfield):(TQString::null), \
- (backupAddr)?(backupAddr->palmfield):(TQString::null) ))
+ (!pcAddr.isEmpty())?(abfield):(TQString()), \
+ (palmAddr)?(palmAddr->palmfield):(TQString()), \
+ (backupAddr)?(backupAddr->palmfield):(TQString()) ))
#define appendAddr(desc, abfield, palmfield) \
appendGen(desc, abfield, getField(palmfield))
#define appendGenPhone(desc, abfield, palmfield) \
@@ -1588,7 +1588,7 @@ bool AbbrowserConduit::_buildResolutionTable(ResolutionTable*tab, const Addresse
tab->fExistItems,
!pcAddr.isEmpty() ?
KABCSync::bestMatchedCategoryName(pcAddr.categories(), *fAddressAppInfo, category) :
- TQString::null,
+ TQString(),
palmAddrCategoryLabel,
backupAddrCategoryLabel));
#undef appendGen
@@ -1843,7 +1843,7 @@ Addressee AbbrowserConduit::_findMatch(const PilotAddress & pilotAddress) const
DEBUGKPILOT << fname << ": PilotRecord has id " << pilotAddress.id() << ", mapped to " << id << endl;
if(!id.isEmpty())
{
- Addressee res(aBook->tqfindByUid(id));
+ Addressee res(aBook->findByUid(id));
if(!res.isEmpty()) return res;
DEBUGKPILOT << fname << ": PilotRecord has id " << pilotAddress.id() << ", but could not be found in the addressbook" << endl;
}
diff --git a/conduits/abbrowserconduit/abbrowser-conduit.h b/conduits/abbrowserconduit/abbrowser-conduit.h
index 22e9446..464378f 100644
--- a/conduits/abbrowserconduit/abbrowser-conduit.h
+++ b/conduits/abbrowserconduit/abbrowser-conduit.h
@@ -54,6 +54,7 @@ typedef TQValueList<recordid_t> RecordIDList;
class AbbrowserConduit : public ConduitAction
{
Q_OBJECT
+ TQ_OBJECT
public:
AbbrowserConduit(KPilotLink *o,const char *n = 0L,
const TQStringList &a = TQStringList() );
diff --git a/conduits/abbrowserconduit/abbrowser-setup.cc b/conduits/abbrowserconduit/abbrowser-setup.cc
index f4d80d2..b275d3b 100644
--- a/conduits/abbrowserconduit/abbrowser-setup.cc
+++ b/conduits/abbrowserconduit/abbrowser-setup.cc
@@ -132,7 +132,7 @@ AbbrowserWidgetSetup::~AbbrowserWidgetSetup()
#endif
int fmtindex=fConfigWidget->fCustomDate->currentItem();
AbbrowserSettings::setCustomDateFormat(
- (fmtindex==0)?(TQString::null):fConfigWidget->fCustomDate->currentText() );
+ (fmtindex==0)?(TQString()):fConfigWidget->fCustomDate->currentText() );
AbbrowserSettings::self()->writeConfig();
unmodified();
diff --git a/conduits/abbrowserconduit/kabcRecord.cc b/conduits/abbrowserconduit/kabcRecord.cc
index b713b84..b503031 100644
--- a/conduits/abbrowserconduit/kabcRecord.cc
+++ b/conduits/abbrowserconduit/kabcRecord.cc
@@ -362,7 +362,7 @@ void KABCSync::setFieldFromHHCustom(
bdate = KGlobal::locale()->readDate(value, format, &ok);
}
DEBUGKPILOT << "Birthdate from " << index << "-th custom field: "
- << bdate.toString() << endl;
+ << TQString(bdate.toString()) << endl;
DEBUGKPILOT << "Is Valid: " << bdate.isValid() << endl;
if (bdate.isValid())
{
@@ -437,7 +437,7 @@ TQString KABCSync::getFieldForHHOtherPhone(const KABC::Addressee & abEntry, cons
case eTTYTTDPhone:
return abEntry.phoneNumber(KABC::PhoneNumber::Pcs).number();
default:
- return TQString::null;
+ return TQString();
}
}
diff --git a/conduits/abbrowserconduit/kaddressbookConduit.ui b/conduits/abbrowserconduit/kaddressbookConduit.ui
index 169311f..81e5202 100644
--- a/conduits/abbrowserconduit/kaddressbookConduit.ui
+++ b/conduits/abbrowserconduit/kaddressbookConduit.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>AbbrowserWidget</class>
<author>Adriaan de Groot and David Bishop</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form2</cstring>
</property>
@@ -23,14 +23,14 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QTabWidget" row="0" column="0">
+ <widget class="TQTabWidget" row="0" column="0">
<property name="name">
<cstring>tabWidget</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -58,7 +58,7 @@
</size>
</property>
</spacer>
- <widget class="QButtonGroup" row="0" column="0">
+ <widget class="TQButtonGroup" row="0" column="0">
<property name="name">
<cstring>fSyncDestination</cstring>
</property>
@@ -69,7 +69,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQRadioButton" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>fSyncStdAbook</cstring>
</property>
@@ -80,7 +80,7 @@
<string>&lt;qt&gt;Select this option to synchronize with KDE's standard addressbook (i.e. the addressbook that you edit in KAddressBook, and which you use in KMail)&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>fSyncFile</cstring>
</property>
@@ -115,7 +115,7 @@
</widget>
</grid>
</widget>
- <widget class="QCheckBox" row="2" column="0">
+ <widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>fArchive</cstring>
</property>
@@ -128,7 +128,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -139,7 +139,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox4</cstring>
</property>
@@ -150,7 +150,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_2_2</cstring>
</property>
@@ -172,7 +172,7 @@
<string>&lt;qt&gt;Select in this list how conflicting entries (entries which were edited both on your handheld and on the PC) are resolved. Possibly values are "Use KPilot's Global Setting" to use the settings defined in KPilot HotSync configuration, "Ask User" to let you decide case by case, "Do Nothing" to allow the entries to be different, "PC overrides", "Handheld overrides", "Use values from last sync" and "Use both entries" to create a new entry on both the PC and handheld.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>Use KPilot's Global Setting</string>
@@ -218,7 +218,7 @@
<string>&lt;qt&gt;Select in this list how conflicting entries (entries which were edited both on your handheld and on the PC) are resolved. Possibly values are "Use KPilot's Global Setting" to use the settings defined in KPilot HotSync configuration, "Ask User" to let you decide case by case, "Do Nothing" to allow the entries to be different, "PC overrides", "Handheld overrides", "Use values from last sync" and "Use both entries" to create a new entry on both the PC and handheld.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1_7</cstring>
</property>
@@ -250,7 +250,7 @@
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -267,7 +267,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -278,7 +278,7 @@
<string>&lt;qt&gt;Select which KAddressBook field should be used to store the Pilot's &amp;quot;Other&amp;quot; phone here.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QComboBox" row="0" column="1">
+ <widget class="TQComboBox" row="0" column="1">
<item>
<property name="text">
<string>Other Phone</string>
@@ -334,7 +334,7 @@
<string>&lt;qt&gt;Select which KAddressBook field should be used to store the Pilot's &amp;quot;Other&amp;quot; phone here.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel4</cstring>
</property>
@@ -345,7 +345,7 @@
<string>&lt;qt&gt;Select which KAddressBook field should be used to store the Pilot's Street Address here.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>Preferred, then Home Address</string>
@@ -363,7 +363,7 @@
<string>&lt;qt&gt;Select which KAddressBook field should be used to store the Pilot's Street Address here.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel5</cstring>
</property>
@@ -374,7 +374,7 @@
<string>&lt;qt&gt;Select which KAddressBook field should be used to store the Fax number from the Pilot here.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QComboBox" row="2" column="1">
+ <widget class="TQComboBox" row="2" column="1">
<item>
<property name="text">
<string>Home Fax</string>
@@ -411,7 +411,7 @@
</spacer>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -422,7 +422,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -441,7 +441,7 @@
<string>&lt;qt&gt;Select the field from this list that represents best the meaning given by your use of the first custom field on your handheld.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -452,7 +452,7 @@
<string>&lt;qt&gt;Select the field from this list that represents best the meaning given by your use of the second custom field on your handheld.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@@ -463,7 +463,7 @@
<string>&lt;qt&gt;Select the field from this list that represents best the meaning given by your use of the third custom field on your handheld.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1_4</cstring>
</property>
@@ -474,7 +474,7 @@
<string>&lt;qt&gt;Select the field from this list that represents best the meaning given by your use of the fourth custom field on your handheld.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QComboBox" row="0" column="1">
+ <widget class="TQComboBox" row="0" column="1">
<item>
<property name="text">
<string>Store as Custom Field</string>
@@ -510,7 +510,7 @@
<string>&lt;qt&gt;Select the field from this list that represents best the meaning given by your use of the first custom field on your handheld.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>Store as Custom Field</string>
@@ -546,7 +546,7 @@
<string>&lt;qt&gt;Select the field from this list that represents best the meaning given by your use of the second custom field on your handheld.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QComboBox" row="2" column="1">
+ <widget class="TQComboBox" row="2" column="1">
<item>
<property name="text">
<string>Store as Custom Field</string>
@@ -582,7 +582,7 @@
<string>&lt;qt&gt;Select the field from this list that represents best the meaning given by your use of the third custom field on your handheld.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QComboBox" row="3" column="1">
+ <widget class="TQComboBox" row="3" column="1">
<item>
<property name="text">
<string>Store as Custom Field</string>
@@ -632,7 +632,7 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QLabel" row="5" column="0" rowspan="2" colspan="1">
+ <widget class="TQLabel" row="5" column="0" rowspan="2" colspan="1">
<property name="name">
<cstring>textLabel1_5</cstring>
</property>
@@ -646,7 +646,7 @@
<string>&lt;qt&gt;Select the birthdate format here, if you selected "birthdate" for any of the custom fields above. Possible placeholders are:&lt;br&gt; %d for the day, %m for the month, %y for the two-digit year, %Y for the four-digit year. For example, %d.%m.%Y would generate a date like 27.3.1952, while %m/%d/%y would write the same date as 03/27/52. &lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QComboBox" row="6" column="1">
+ <widget class="TQComboBox" row="6" column="1">
<item>
<property name="text">
<string>Locale Settings</string>
diff --git a/conduits/abbrowserconduit/resolutionDialog.cc b/conduits/abbrowserconduit/resolutionDialog.cc
index d9b7089..0064a68 100644
--- a/conduits/abbrowserconduit/resolutionDialog.cc
+++ b/conduits/abbrowserconduit/resolutionDialog.cc
@@ -43,15 +43,15 @@
* as well as its child radio buttons. There are two different constructors
* for them.
* Each controller has three child radio buttons, and if any of them is
- * activated (stateChange), it sets the text of its parent (which is the
+ * activated (stateChange), it sets the text of its tqparent (which is the
* controller, which is an instance of ResolutionCheckListItem, too).
**/
class ResolutionCheckListItem : TQCheckListItem {
public:
ResolutionCheckListItem(ResolutionItem*it, ResolutionTable*tb,
- TQListView*parent);
+ TQListView*tqparent);
ResolutionCheckListItem(TQString header, TQString text,
- ResolutionCheckListItem*parent);
+ ResolutionCheckListItem*tqparent);
~ResolutionCheckListItem() {};
virtual void stateChange(bool newstate);
virtual void setValue(TQString text);
@@ -73,12 +73,12 @@ protected:
ResolutionCheckListItem::ResolutionCheckListItem(ResolutionItem*it,
- ResolutionTable*tb, TQListView*parent) :
- TQCheckListItem(parent, TQString::null, TQCheckListItem::Controller),
+ ResolutionTable*tb, TQListView*tqparent) :
+ TQCheckListItem(tqparent, TQString(), TQCheckListItem::Controller),
fResItem(it),
isController(true),
- fCaption(it?(it->fName):(TQString::null)),
- fText(it?(it->fResolved):(TQString::null))
+ fCaption(it?(it->fName):(TQString())),
+ fText(it?(it->fResolved):(TQString()))
{
FUNCTIONSETUP;
if (it && tb)
@@ -119,8 +119,8 @@ ResolutionCheckListItem::ResolutionCheckListItem(ResolutionItem*it,
}
ResolutionCheckListItem::ResolutionCheckListItem(TQString text, TQString header,
- ResolutionCheckListItem*parent) :
- TQCheckListItem(parent, TQString(), TQCheckListItem::RadioButton),
+ ResolutionCheckListItem*tqparent) :
+ TQCheckListItem(tqparent, TQString(), TQCheckListItem::RadioButton),
fResItem(0L),
isController(false),
fCaption(header),
@@ -133,7 +133,7 @@ void ResolutionCheckListItem::stateChange(bool newstate)
{
if (newstate && !isController)
{
- ResolutionCheckListItem*par=static_cast<ResolutionCheckListItem*>(parent());
+ ResolutionCheckListItem*par=static_cast<ResolutionCheckListItem*>(tqparent());
{
par->setValue(fText);
}
@@ -159,7 +159,7 @@ void ResolutionCheckListItem::setCaption(TQString caption)
void ResolutionCheckListItem::updateText()
{
- TQString newText(i18n("Entries in the resolution dialog. First the name of the field, then the entry from the Handheld or PC after the colon", "%1: %2").arg(fCaption).arg(fText));
+ TQString newText(i18n("Entries in the resolution dialog. First the name of the field, then the entry from the Handheld or PC after the colon", "%1: %2").tqarg(fCaption).tqarg(fText));
newText.tqreplace(TQRegExp(CSL1("\n")),
i18n("Denoting newlines in Address entries. No need to translate", " | "));
setText(0, newText);
@@ -171,9 +171,9 @@ void ResolutionCheckListItem::updateText()
*
*****************************************************************/
-ResolutionDlg::ResolutionDlg( TQWidget* parent, KPilotLink*fH,
+ResolutionDlg::ResolutionDlg( TQWidget* tqparent, KPilotLink*fH,
const TQString &caption, const TQString &helpText, ResolutionTable*tab) :
- KDialogBase( parent, "ResolutionDlg", false, caption, Apply|Cancel, Apply),
+ KDialogBase( tqparent, "ResolutionDlg", false, caption, Apply|Cancel, Apply),
tickleTimer(0L),
fHandle(fH),
fTable(tab)
@@ -319,5 +319,5 @@ void ResolutionDlg::_tickle()
*/
ResolutionDlg::~ResolutionDlg()
{
- // no need to delete child widgets, Qt does it all for us
+ // no need to delete child widgets, TQt does it all for us
}
diff --git a/conduits/abbrowserconduit/resolutionDialog.h b/conduits/abbrowserconduit/resolutionDialog.h
index 2c7a8b0..68a1d58 100644
--- a/conduits/abbrowserconduit/resolutionDialog.h
+++ b/conduits/abbrowserconduit/resolutionDialog.h
@@ -40,9 +40,10 @@ class ResolutionTable;
class ResolutionDlg : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- ResolutionDlg( TQWidget* parent=0,
+ ResolutionDlg( TQWidget* tqparent=0,
KPilotLink*fH=0L,
const TQString &caption=TQString(),
const TQString &helpText=TQString(),
diff --git a/conduits/abbrowserconduit/resolutionDialog_base.ui b/conduits/abbrowserconduit/resolutionDialog_base.ui
index c561599..5f5442f 100644
--- a/conduits/abbrowserconduit/resolutionDialog_base.ui
+++ b/conduits/abbrowserconduit/resolutionDialog_base.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>ResolutionDialogBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>widget2</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>fIntroText</cstring>
</property>
@@ -30,7 +30,7 @@
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
- <widget class="QListView" row="1" column="0">
+ <widget class="TQListView" row="1" column="0">
<column>
<property name="text">
<string>Field</string>
@@ -55,7 +55,7 @@
<string>&lt;qt&gt;Use this list to resolve, field by field, the conflicts created when a record was edited both on the handheld and on the PC. For each record, the different values from the last sync, the handheld and PC are displayed for each field, allowing you to choose the desired value.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -66,7 +66,7 @@
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
- <widget class="QFrame" row="3" column="0">
+ <widget class="TQFrame" row="3" column="0">
<property name="name">
<cstring>frame3</cstring>
</property>
@@ -77,7 +77,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton" row="0" column="1">
+ <widget class="TQPushButton" row="0" column="1">
<property name="name">
<cstring>fKeepBoth</cstring>
</property>
@@ -88,7 +88,7 @@
<string>&lt;qt&gt;Click this button to use both values, resulting in the duplication of the record.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QPushButton" row="0" column="0">
+ <widget class="TQPushButton" row="0" column="0">
<property name="name">
<cstring>fPCValues</cstring>
</property>
@@ -99,7 +99,7 @@
<string>&lt;qt&gt;Click this button to use the PC values for synchronizing all conflicting fields in this record.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QPushButton" row="1" column="0">
+ <widget class="TQPushButton" row="1" column="0">
<property name="name">
<cstring>fBackupValues</cstring>
</property>
@@ -110,7 +110,7 @@
<string>&lt;qt&gt;Click this button to use the last sync values (old values) for synchronizing all conflicting fields in this record.&lt;/qt&gt;</string>
</property>
</widget>
- <widget class="QPushButton" row="1" column="1">
+ <widget class="TQPushButton" row="1" column="1">
<property name="name">
<cstring>fPalmValues</cstring>
</property>