summaryrefslogtreecommitdiffstats
path: root/knode/knarticlefactory.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 /knode/knarticlefactory.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 'knode/knarticlefactory.cpp')
-rw-r--r--knode/knarticlefactory.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/knode/knarticlefactory.cpp b/knode/knarticlefactory.cpp
index 493e2e229..1421b405e 100644
--- a/knode/knarticlefactory.cpp
+++ b/knode/knarticlefactory.cpp
@@ -63,7 +63,7 @@ void KNArticleFactory::createPosting(KNNntpAccount *a)
art->setDoPost(true);
art->setDoMail(false);
- KNComposer *c = new KNComposer( art, TQString::null, sig, TQString::null, true );
+ KNComposer *c = new KNComposer( art, TQString(), sig, TQString(), true );
mCompList.append( c );
connect(c, TQT_SIGNAL(composerDone(KNComposer*)), this, TQT_SLOT(slotComposerDone(KNComposer*)));
c->show();
@@ -92,7 +92,7 @@ void KNArticleFactory::createPosting(KNGroup *g)
art->setDoMail(false);
art->newsgroups()->fromUnicodeString(g->groupname(), art->defaultCharset());
- KNComposer *c=new KNComposer(art, TQString::null, sig, TQString::null, true);
+ KNComposer *c=new KNComposer(art, TQString(), sig, TQString(), true);
mCompList.append( c );
connect(c, TQT_SIGNAL(composerDone(KNComposer*)), this, TQT_SLOT(slotComposerDone(KNComposer*)));
c->show();
@@ -140,7 +140,7 @@ void KNArticleFactory::createReply(KNRemoteArticle *a, TQString selectedText, bo
if( post && // user wanted to reply by public posting?
// ask the user if she wants to ignore this F'up-To: poster
( KMessageBox::Yes != KMessageBox::questionYesNo(knGlobals.topWidget,
- i18n("The author has requested a reply by email instead\nof a followup to the newsgroup. (Followup-To: poster)\nDo you want to reply in public anyway?"), TQString::null, i18n("Reply Public"), i18n("Reply by Email")) ))
+ i18n("The author has requested a reply by email instead\nof a followup to the newsgroup. (Followup-To: poster)\nDo you want to reply in public anyway?"), TQString(), i18n("Reply Public"), i18n("Reply by Email")) ))
{
art->setDoPost(false);
art->setDoMail(true);
@@ -192,7 +192,7 @@ void KNArticleFactory::createReply(KNRemoteArticle *a, TQString selectedText, bo
authorWantsMailCopies = mailCopiesTo->alwaysCopy();
if (authorWantsMailCopies) // warn the user
KMessageBox::information(knGlobals.topWidget,i18n("The author requested a mail copy of your reply. (Mail-Copies-To header)"),
- TQString::null,"mailCopiesToWarning");
+ TQString(),"mailCopiesToWarning");
if (authorWantsMailCopies && mailCopiesTo->hasEmail()) {
address.setName(mailCopiesTo->name());
address.setEmail(mailCopiesTo->email());
@@ -219,7 +219,7 @@ void KNArticleFactory::createReply(KNRemoteArticle *a, TQString selectedText, bo
attribution+="\n\n";
TQString quoted=attribution;
- TQString notRewraped=TQString::null;
+ TQString notRewraped=TQString();
TQStringList text;
TQStringList::Iterator line;
bool incSig=knGlobals.configManager()->postNewsComposer()->includeSignature();
@@ -279,7 +279,7 @@ void KNArticleFactory::createForward(KNArticle *a)
bool incAtt = ( !knGlobals.configManager()->postNewsTechnical()->useExternalMailer() &&
ct->isMultipart() && ct->isSubtype("mixed") &&
KMessageBox::Yes == KMessageBox::questionYesNo(knGlobals.topWidget,
- i18n("This article tqcontains attachments. Do you want them to be forwarded as well?"), TQString::null, i18n("Forward"), i18n("Do Not Forward"))
+ i18n("This article contains attachments. Do you want them to be forwarded as well?"), TQString(), i18n("Forward"), i18n("Do Not Forward"))
);
if (knGlobals.configManager()->postNewsTechnical()->useOwnCharset())
@@ -341,13 +341,13 @@ void KNArticleFactory::createForward(KNArticle *a)
if (knGlobals.configManager()->postNewsTechnical()->useExternalMailer()) {
- sendMailExternal(TQString::null, subject, fwd);
+ sendMailExternal(TQString(), subject, fwd);
delete art;
return;
}
//open composer
- KNComposer *c=new KNComposer(art, fwd, sig, TQString::null, true);
+ KNComposer *c=new KNComposer(art, fwd, sig, TQString(), true);
mCompList.append( c );
connect(c, TQT_SIGNAL(composerDone(KNComposer*)), this, TQT_SLOT(slotComposerDone(KNComposer*)));
c->show();
@@ -360,7 +360,7 @@ void KNArticleFactory::createCancel(KNArticle *a)
return;
if(KMessageBox::No==KMessageBox::questionYesNo(knGlobals.topWidget,
- i18n("Do you really want to cancel this article?"), TQString::null, i18n("Cancel Article"), KStdGuiItem::cancel()))
+ i18n("Do you really want to cancel this article?"), TQString(), i18n("Cancel Article"), KStdGuiItem::cancel()))
return;
bool sendNow;
@@ -440,7 +440,7 @@ void KNArticleFactory::createSupersede(KNArticle *a)
return;
if(KMessageBox::No==KMessageBox::questionYesNo(knGlobals.topWidget,
- i18n("Do you really want to supersede this article?"), TQString::null, i18n("Supersede"), KStdGuiItem::cancel()))
+ i18n("Do you really want to supersede this article?"), TQString(), i18n("Supersede"), KStdGuiItem::cancel()))
return;
KNGroup *grp;
@@ -523,7 +523,7 @@ void KNArticleFactory::createMail(KMime::Headers::AddressField *address)
art->to()->addAddress((*address));
//open composer
- KNComposer *c=new KNComposer(art, TQString::null, sig, TQString::null, true);
+ KNComposer *c=new KNComposer(art, TQString(), sig, TQString(), true);
mCompList.append( c );
connect(c, TQT_SIGNAL(composerDone(KNComposer*)), this, TQT_SLOT(slotComposerDone(KNComposer*)));
c->show();
@@ -534,7 +534,7 @@ void KNArticleFactory::sendMailExternal(const TQString &address, const TQString
{
KURL mailtoURL;
TQStringList queries;
- TQString query=TQString::null;
+ TQString query=TQString();
mailtoURL.setProtocol("mailto");
if (!address.isEmpty())
@@ -596,7 +596,7 @@ void KNArticleFactory::edit(KNLocalArticle *a)
knGlobals.articleManager()->loadArticle(a);
//open composer
- com=new KNComposer(a, TQString::null, id->getSignature());
+ com=new KNComposer(a, TQString(), id->getSignature());
if(id->useSigGenerator() && !id->getSigGeneratorStdErr().isEmpty())
KMessageBox::information(knGlobals.topWidget,
i18n("<qt>The signature generator program produced the "
@@ -880,7 +880,7 @@ KNLocalArticle* KNArticleFactory::newArticle(KNCollection *col, TQString &sig, T
value.tqreplace(TQRegExp("%EMAIL"), TQString::tqfromLatin1(origPost->from()->email()));
}
else
- if(value.find("%NAME") != -1 || value.find("%EMAIL") != -1)
+ if(value.tqfind("%NAME") != -1 || value.tqfind("%EMAIL") != -1)
continue;
art->setHeader( new KMime::Headers::Generic( (TQCString("X-")+(*it).name()), art, value, pnt->charset() ) );
@@ -898,7 +898,7 @@ KNLocalArticle* KNArticleFactory::newArticle(KNCollection *col, TQString &sig, T
.arg(id->getSigGeneratorStdErr()));
}
else
- sig=TQString::null;
+ sig=TQString();
return art;
}
@@ -1073,7 +1073,7 @@ KNSendErrorDialog::KNSendErrorDialog()
new TQLabel(TQString("<b>%1</b><br>%2").arg(i18n("Errors occurred while sending these articles:"))
.arg(i18n("The unsent articles are stored in the \"Outbox\" folder.")), page);
j_obs=new KNDialogListBox(true, page);
- e_rror=new TQLabel(TQString::null, page);
+ e_rror=new TQLabel(TQString(), page);
connect(j_obs, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(slotHighlighted(int)));