summaryrefslogtreecommitdiffstats
path: root/kaddressbook/xxport/gnokii_xxport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/xxport/gnokii_xxport.cpp')
-rw-r--r--kaddressbook/xxport/gnokii_xxport.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kaddressbook/xxport/gnokii_xxport.cpp b/kaddressbook/xxport/gnokii_xxport.cpp
index 053a850e2..564fcf5fb 100644
--- a/kaddressbook/xxport/gnokii_xxport.cpp
+++ b/kaddressbook/xxport/gnokii_xxport.cpp
@@ -528,7 +528,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
{
KABC::AddresseeList addrList;
- if (KMessageBox::Continue != KMessageBox::warningContinueCancel(tqparentWidget(),
+ if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parentWidget(),
i18n("<qt>Please connect your Mobile Phone to your computer and press "
"<b>Continue</b> to start importing the personal contacts.<br><br>"
"Please note that if your Mobile Phone is not properly connected "
@@ -536,7 +536,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
"KAddressbook will behave unresponsively.</qt>") ))
return addrList;
- m_progressDlg = new KProgressDialog( tqparentWidget(), "importwidget",
+ m_progressDlg = new KProgressDialog( parentWidget(), "importwidget",
i18n("Mobile Phone Import"),
i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>"
"Please wait...</center></qt>") );
@@ -553,7 +553,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
m_progressDlg->unsetCursor();
if (!errStr.isEmpty()) {
- KMessageBox::error(tqparentWidget(), errStr);
+ KMessageBox::error(parentWidget(), errStr);
delete m_progressDlg;
return addrList;
}
@@ -575,7 +575,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQString & )
{
- if (KMessageBox::Continue != KMessageBox::warningContinueCancel(tqparentWidget(),
+ if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parentWidget(),
i18n("<qt>Please connect your Mobile Phone to your computer and press "
"<b>Continue</b> to start exporting the selected personal contacts.<br><br>"
"Please note that if your Mobile Phone is not properly connected "
@@ -583,7 +583,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
"KAddressbook will behave unresponsively.</qt>") ))
return false;
- m_progressDlg = new KProgressDialog( tqparentWidget(), "importwidget",
+ m_progressDlg = new KProgressDialog( parentWidget(), "importwidget",
i18n("Mobile Phone Export"),
i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>"
"Please wait...</center></qt>") );
@@ -608,7 +608,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
m_progressDlg->unsetCursor();
if (!errStr.isEmpty()) {
- KMessageBox::error(tqparentWidget(), errStr);
+ KMessageBox::error(parentWidget(), errStr);
delete m_progressDlg;
return false;
}
@@ -637,7 +637,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
phone_count = memstat.used;
if (memstat.free >= (int) list.count()) {
- if (KMessageBox::No == KMessageBox::questionYesNo(tqparentWidget(),
+ if (KMessageBox::No == KMessageBox::questionYesNo(parentWidget(),
i18n("<qt>Do you want the selected contacts to be <b>appended</b> to "
"the current mobile phonebook or should they <b>tqreplace</b> all "
"currently existing phonebook entries ?<br><br>"
@@ -756,7 +756,7 @@ finish:
if (!failedList.isEmpty()) {
GNOKII_DEBUG(TQString("Failed to export: %1\n").tqarg(failedList.join(", ")));
- KMessageBox::informationList(tqparentWidget(),
+ KMessageBox::informationList(parentWidget(),
i18n("<qt>The following contacts could not be exported to the Mobile Phone. "
"Possible Reasons for this problem could be:<br><ul>"
"<li>The contacts contain more information per entry than the phone can store.</li>"
@@ -1319,7 +1319,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
{
KABC::AddresseeList addrList;
- if (KMessageBox::Continue != KMessageBox::warningContinueCancel(tqparentWidget(),
+ if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parentWidget(),
i18n("<qt>Please connect your Mobile Phone to your computer and press "
"<b>Continue</b> to start importing the personal contacts.<br><br>"
"Please note that if your Mobile Phone is not properly connected "
@@ -1327,7 +1327,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
"KAddressbook will behave unresponsively.</qt>") ))
return addrList;
- m_progressDlg = new KProgressDialog( tqparentWidget(), "importwidget",
+ m_progressDlg = new KProgressDialog( parentWidget(), "importwidget",
i18n("Mobile Phone Import"),
i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>"
"Please wait...</center></qt>") );
@@ -1344,7 +1344,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
m_progressDlg->unsetCursor();
if (!errStr.isEmpty()) {
- KMessageBox::error(tqparentWidget(), errStr);
+ KMessageBox::error(parentWidget(), errStr);
delete m_progressDlg;
return addrList;
}
@@ -1366,7 +1366,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQString & )
{
- if (KMessageBox::Continue != KMessageBox::warningContinueCancel(tqparentWidget(),
+ if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parentWidget(),
i18n("<qt>Please connect your Mobile Phone to your computer and press "
"<b>Continue</b> to start exporting the selected personal contacts.<br><br>"
"Please note that if your Mobile Phone is not properly connected "
@@ -1374,7 +1374,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
"KAddressbook will behave unresponsively.</qt>") ))
return false;
- m_progressDlg = new KProgressDialog( tqparentWidget(), "importwidget",
+ m_progressDlg = new KProgressDialog( parentWidget(), "importwidget",
i18n("Mobile Phone Export"),
i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>"
"Please wait...</center></qt>") );
@@ -1399,7 +1399,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
m_progressDlg->unsetCursor();
if (!errStr.isEmpty()) {
- KMessageBox::error(tqparentWidget(), errStr);
+ KMessageBox::error(parentWidget(), errStr);
delete m_progressDlg;
return false;
}
@@ -1428,7 +1428,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
phone_count = memstat.used;
if (memstat.free >= (int) list.count()) {
- if (KMessageBox::No == KMessageBox::questionYesNo(tqparentWidget(),
+ if (KMessageBox::No == KMessageBox::questionYesNo(parentWidget(),
i18n("<qt>Do you want the selected contacts to be <b>appended</b> to "
"the current mobile phonebook or should they <b>tqreplace</b> all "
"currently existing phonebook entries ?<br><br>"
@@ -1547,7 +1547,7 @@ finish:
if (!failedList.isEmpty()) {
GNOKII_DEBUG(TQString("Failed to export: %1\n").tqarg(failedList.join(", ")));
- KMessageBox::informationList(tqparentWidget(),
+ KMessageBox::informationList(parentWidget(),
i18n("<qt>The following contacts could not be exported to the Mobile Phone. "
"Possible Reasons for this problem could be:<br><ul>"
"<li>The contacts contain more information per entry than the phone can store.</li>"
@@ -1575,7 +1575,7 @@ finish:
KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
{
KABC::AddresseeList addrList;
- KMessageBox::error(tqparentWidget(), i18n("Gnokii interface is not available.\n"
+ KMessageBox::error(parentWidget(), i18n("Gnokii interface is not available.\n"
"Please ask your distributor to add gnokii at compile time."));
return addrList;
}
@@ -1583,7 +1583,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQString & )
{
Q_UNUSED(list);
- KMessageBox::error(tqparentWidget(), i18n("Gnokii interface is not available.\n"
+ KMessageBox::error(parentWidget(), i18n("Gnokii interface is not available.\n"
"Please ask your distributor to add gnokii at compile time."));
return true;
}