summaryrefslogtreecommitdiffstats
path: root/lib/plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugin.cc')
-rw-r--r--lib/plugin.cc78
1 files changed, 39 insertions, 39 deletions
diff --git a/lib/plugin.cc b/lib/plugin.cc
index 27631ce..98c110d 100644
--- a/lib/plugin.cc
+++ b/lib/plugin.cc
@@ -65,9 +65,9 @@
#include "plugin.moc"
-ConduitConfigBase::ConduitConfigBase(TQWidget *parent,
+ConduitConfigBase::ConduitConfigBase(TQWidget *tqparent,
const char *name) :
- TQObject(parent,name),
+ TQObject(tqparent,name),
fModified(false),
fWidget(0L),
fConduitName(i18n("Unnamed"))
@@ -91,7 +91,7 @@ ConduitConfigBase::~ConduitConfigBase()
FUNCTIONSETUP;
return i18n("<qt>The <i>%1</i> conduit's settings have been changed. Do you "
- "want to save the changes before continuing?</qt>").arg(this->conduitName());
+ "want to save the changes before continuing?</qt>").tqarg(this->conduitName());
}
/* virtual */ bool ConduitConfigBase::maybeSave()
@@ -102,17 +102,17 @@ ConduitConfigBase::~ConduitConfigBase()
int r = KMessageBox::questionYesNoCancel(fWidget,
maybeSaveText(),
- i18n("%1 Conduit").arg(this->conduitName()), KStdGuiItem::save(), KStdGuiItem::discard());
+ i18n("%1 Conduit").tqarg(this->conduitName()), KStdGuiItem::save(), KStdGuiItem::discard());
if (r == KMessageBox::Cancel) return false;
if (r == KMessageBox::Yes) commit();
return true;
}
-TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
+TQWidget *ConduitConfigBase::aboutPage(TQWidget *tqparent, KAboutData *ad)
{
FUNCTIONSETUP;
- TQWidget *w = new TQWidget(parent, "aboutpage");
+ TQWidget *w = new TQWidget(tqparent, "aboutpage");
TQString s;
TQLabel *text;
@@ -138,7 +138,7 @@ TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
}
text = new TQLabel(w);
- // Experiment with a long non-<qt> string. Use that to find
+ // Experiment with a long non-<qt> string. Use that to tqfind
// sensible widths for the columns.
//
text->setText(i18n("Send questions and comments to kdepim-users@kde.org"));
@@ -148,7 +148,7 @@ TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
int lineheight = text->size().height();
// Use the label to display the applciation icon
- text->setText(TQString::null);
+ text->setText(TQString());
text->setPixmap(applicationIcon);
text->adjustSize();
grid->addWidget(text, 0, 1);
@@ -183,27 +183,27 @@ TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
if (!p->homepage().isEmpty())
{
- s = TQString::null;
- s += CSL1("<a href=\"%1\">").arg(p->homepage());
+ s = TQString();
+ s += CSL1("<a href=\"%1\">").tqarg(p->homepage());
s += p->homepage();
s += CSL1("</a><br>");
linktext->append(s);
}
- s = TQString::null;
+ s = TQString();
s += i18n("Send questions and comments to <a href=\"mailto:%1\">%2</a>.")
- .arg( CSL1("kdepim-users@kde.org") )
- .arg( CSL1("kdepim-users@kde.org") );
+ .tqarg( CSL1("kdepim-users@kde.org") )
+ .tqarg( CSL1("kdepim-users@kde.org") );
s += ' ';
s += i18n("Send bug reports to <a href=\"mailto:%1\">%2</a>.")
- .arg(p->bugAddress())
- .arg(p->bugAddress());
+ .tqarg(p->bugAddress())
+ .tqarg(p->bugAddress());
s += ' ';
s += i18n("For trademark information, see the "
"<a href=\"help:/kpilot/trademarks.html\">KPilot User's Guide</a>.");
s += CSL1("<br>");
linktext->append(s);
- linktext->append(TQString::null);
+ linktext->append(TQString());
@@ -218,15 +218,15 @@ TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
for (i=pl.begin(); i!=pl.end(); ++i)
{
s.append(CSL1("%1 (<i>%2</i>)%3")
- .arg((*i).name())
- .arg((*i).task())
- .arg(count<pl.count() ? comma : TQString::null)
+ .tqarg((*i).name())
+ .tqarg((*i).task())
+ .tqarg(count<pl.count() ? comma : TQString())
);
count++;
}
linktext->append(s);
- s = TQString::null;
+ s = TQString();
pl = p->credits();
if (pl.count()>0)
{
@@ -235,9 +235,9 @@ TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
for (i=pl.begin(); i!=pl.end(); ++i)
{
s.append(CSL1("%1 (<i>%2</i>)%3")
- .arg((*i).name())
- .arg((*i).task())
- .arg(count<pl.count() ? comma : TQString::null)
+ .tqarg((*i).name())
+ .tqarg((*i).task())
+ .tqarg(count<pl.count() ? comma : TQString())
);
count++;
}
@@ -485,8 +485,8 @@ void ConduitAction::finished()
if (hhVolatility > allowedVolatility)
{
- query = query.arg(fConduitName)
- .arg(fCtrHH->type()).arg(fCtrHH->moo());
+ query = query.tqarg(fConduitName)
+ .tqarg(fCtrHH->type()).tqarg(fCtrHH->moo());
DEBUGKPILOT << fname << ": Yikes, lots of volatility "
<< "caught. Check with user: [" << query
@@ -494,7 +494,7 @@ void ConduitAction::finished()
/*
int rc = questionYesNo(query, caption,
- TQString::null, 0 );
+ TQString(), 0 );
if (rc == KMessageBox::Yes)
{
// TODO: add commit and rollback code.
@@ -533,7 +533,7 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
WARNINGKPILOT << "Can't find desktop file for conduit "
<< fDesktopName
<< endl;
- addSyncLogEntry(i18n("Could not find conduit %1.").arg(fDesktopName));
+ addSyncLogEntry(i18n("Could not find conduit %1.").tqarg(fDesktopName));
return false;
}
@@ -556,7 +556,7 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
<< " - "
<< KLibLoader::self()->lastErrorMessage()
<< endl;
- addSyncLogEntry(i18n("Could not load conduit %1.").arg(fDesktopName));
+ addSyncLogEntry(i18n("Could not load conduit %1.").tqarg(fDesktopName));
return false;
}
@@ -568,7 +568,7 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
<< " has version "
<< version
<< endl;
- addSyncLogEntry(i18n("Conduit %1 has wrong version (%2).").arg(fDesktopName).arg(version));
+ addSyncLogEntry(i18n("Conduit %1 has wrong version (%2).").tqarg(fDesktopName).tqarg(version));
return false;
}
@@ -578,7 +578,7 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
WARNINGKPILOT << "Can't find factory in library "
<< fLibraryName
<< endl;
- addSyncLogEntry(i18n("Could not initialize conduit %1.").arg(fDesktopName));
+ addSyncLogEntry(i18n("Could not initialize conduit %1.").tqarg(fDesktopName));
return false;
}
@@ -591,7 +591,7 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
if (!object)
{
WARNINGKPILOT << "Can't create SyncAction." << endl;
- addSyncLogEntry(i18n("Could not create conduit %1.").arg(fDesktopName));
+ addSyncLogEntry(i18n("Could not create conduit %1.").tqarg(fDesktopName));
return false;
}
@@ -600,11 +600,11 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
if (!fConduit)
{
WARNINGKPILOT << "Can't cast to ConduitAction." << endl;
- addSyncLogEntry(i18n("Could not create conduit %1.").arg(fDesktopName));
+ addSyncLogEntry(i18n("Could not create conduit %1.").tqarg(fDesktopName));
return false;
}
- addSyncLogEntry(i18n("[Conduit %1]").arg(fDesktopName));
+ addSyncLogEntry(i18n("[Conduit %1]").tqarg(fDesktopName));
// Handle the syncDone signal properly & unload the conduit.
TQObject::connect(fConduit,TQT_SIGNAL(syncDone(SyncAction *)),
@@ -676,7 +676,7 @@ TQString findArgument(const TQStringList &a, const TQString &arg)
}
}
- return TQString::null;
+ return TQString();
}
/* static */ bool isRunning(const TQCString &n)
@@ -704,7 +704,7 @@ TQString findArgument(const TQStringList &a, const TQString &arg)
TQString symbol= CSL1("id_");
symbol.append(lib->name());
- if (!lib->hasSymbol(symbol.latin1())) return TQString::null;
+ if (!lib->hasSymbol(symbol.latin1())) return TQString();
return TQString::tqfromLatin1(*((const char **)(lib->symbol(symbol.latin1()))));
}
@@ -746,11 +746,11 @@ void CUDCounter::setEndCount(unsigned int t)
TQString CUDCounter::moo() const
{
TQString result = fType + ": " +
- i18n("Start: %1. End: %2. ").arg(fStart).arg(fEnd);
+ i18n("Start: %1. End: %2. ").tqarg(fStart).tqarg(fEnd);
- if (fC > 0) result += i18n("%1 new. ").arg(fC);
- if (fU > 0) result += i18n("%1 changed. ").arg(fU);
- if (fD > 0) result += i18n("%1 deleted. ").arg(fD);
+ if (fC > 0) result += i18n("%1 new. ").tqarg(fC);
+ if (fU > 0) result += i18n("%1 changed. ").tqarg(fU);
+ if (fD > 0) result += i18n("%1 deleted. ").tqarg(fD);
if ( (fC+fU+fD) <= 0) result += i18n("No changes made. ");