summaryrefslogtreecommitdiffstats
path: root/src/cite/lyxpipe.cpp
diff options
context:
space:
mode:
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()) {