summaryrefslogtreecommitdiffstats
path: root/src/cite/lyxpipe.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/cite/lyxpipe.cpp
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/cite/lyxpipe.cpp')
-rw-r--r--src/cite/lyxpipe.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cite/lyxpipe.cpp b/src/cite/lyxpipe.cpp
index 6075324..4943a8a 100644
--- a/src/cite/lyxpipe.cpp
+++ b/src/cite/lyxpipe.cpp
@@ -20,7 +20,7 @@
#include <klocale.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -43,36 +43,36 @@ bool Lyxpipe::cite(Data::EntryVec entries_) {
return false;
}
- QString lyxpipe = Config::lyxpipe();
- lyxpipe += QString::fromLatin1(".in");
+ TQString lyxpipe = Config::lyxpipe();
+ lyxpipe += TQString::tqfromLatin1(".in");
// myDebug() << "Lyxpipe::cite() - " << lyxpipe << endl;
- QString errorStr = i18n("<qt>Tellico is unable to write to the server pipe at <b>%1</b>.</qt>").arg(lyxpipe);
+ TQString errorStr = i18n("<qt>Tellico is unable to write to the server pipe at <b>%1</b>.</qt>").tqarg(lyxpipe);
- QFile file(lyxpipe);
+ TQFile file(lyxpipe);
if(!file.exists()) {
Kernel::self()->sorry(errorStr);
return false;
}
- int pipeFd = ::open(QFile::encodeName(lyxpipe), O_WRONLY);
+ int pipeFd = ::open(TQFile::encodeName(lyxpipe), O_WRONLY);
if(!file.open(IO_WriteOnly, pipeFd)) {
Kernel::self()->sorry(errorStr);
::close(pipeFd);
return false;
}
- QString output;
- QTextStream ts(&file);
+ TQString output;
+ TQTextStream ts(&file);
for(Data::EntryVecIt it = entries_.begin(); it != entries_.end(); ++it) {
- QString s = BibtexHandler::bibtexKey(it.data());
+ TQString s = BibtexHandler::bibtexKey(it.data());
if(s.isEmpty()) {
continue;
}
output += s;
if(!it.nextEnd() && !output.isEmpty()) {
// pybliographer uses comma-space, and pyblink expects the space there
- output += QString::fromLatin1(", ");
+ output += TQString::tqfromLatin1(", ");
}
}
if(output.isEmpty()) {