summaryrefslogtreecommitdiffstats
path: root/src/cite
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:51 -0600
commit2781e27b871150395a5a82e221684108641002b2 (patch)
tree57f4d7c01a48faef1a840fbe0de8f4ec1e5f606f /src/cite
parent031454e56009d576589c28757f6c6fcf4884095e (diff)
downloadtellico-2781e27b871150395a5a82e221684108641002b2.tar.gz
tellico-2781e27b871150395a5a82e221684108641002b2.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 031454e56009d576589c28757f6c6fcf4884095e.
Diffstat (limited to 'src/cite')
-rw-r--r--src/cite/clipboard.cpp8
-rw-r--r--src/cite/lyxpipe.cpp6
-rw-r--r--src/cite/ooo/ooohandler.cpp4
-rw-r--r--src/cite/openoffice.cpp18
4 files changed, 18 insertions, 18 deletions
diff --git a/src/cite/clipboard.cpp b/src/cite/clipboard.cpp
index 9be7fd0..f242a22 100644
--- a/src/cite/clipboard.cpp
+++ b/src/cite/clipboard.cpp
@@ -18,7 +18,7 @@
#include <klocale.h>
#include <tqapplication.h>
-#include <clipboard.h>
+#include <tqclipboard.h>
using Tellico::Cite::Clipboard;
@@ -35,16 +35,16 @@ bool Clipboard::cite(Data::EntryVec entries_) {
return false;
}
- TQString s = TQString::fromLatin1("\\cite{");
+ TQString s = TQString::tqfromLatin1("\\cite{");
for(Data::EntryVecIt it = entries_.begin(); it != entries_.end(); ++it) {
s += BibtexHandler::bibtexKey(it.data());
if(!it.nextEnd()) {
- s += TQString::fromLatin1(", ");
+ s += TQString::tqfromLatin1(", ");
}
}
s += '}';
- TQClipboard *cb = TQApplication::clipboard();
+ TQClipboard *cb = TQApplication::tqclipboard();
cb->setText(s, TQClipboard::Clipboard);
return true;
}
diff --git a/src/cite/lyxpipe.cpp b/src/cite/lyxpipe.cpp
index 4b305d1..4943a8a 100644
--- a/src/cite/lyxpipe.cpp
+++ b/src/cite/lyxpipe.cpp
@@ -44,10 +44,10 @@ bool Lyxpipe::cite(Data::EntryVec entries_) {
}
TQString lyxpipe = Config::lyxpipe();
- lyxpipe += TQString::fromLatin1(".in");
+ lyxpipe += TQString::tqfromLatin1(".in");
// myDebug() << "Lyxpipe::cite() - " << lyxpipe << endl;
- TQString 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);
TQFile file(lyxpipe);
if(!file.exists()) {
@@ -72,7 +72,7 @@ bool Lyxpipe::cite(Data::EntryVec entries_) {
output += s;
if(!it.nextEnd() && !output.isEmpty()) {
// pybliographer uses comma-space, and pyblink expects the space there
- output += TQString::fromLatin1(", ");
+ output += TQString::tqfromLatin1(", ");
}
}
if(output.isEmpty()) {
diff --git a/src/cite/ooo/ooohandler.cpp b/src/cite/ooo/ooohandler.cpp
index 6af495c..d36b3e4 100644
--- a/src/cite/ooo/ooohandler.cpp
+++ b/src/cite/ooo/ooohandler.cpp
@@ -50,12 +50,12 @@ rtl::OUString OOOHandler::TQString2OU(const TQString& str) {
const uint len = str.length();
sal_Unicode* uni = new sal_Unicode[len + 1];
- const TQChar* qPtr = str.unicode();
+ const TQChar* qPtr = str.tqunicode();
const TQChar* qEnd = qPtr + len;
sal_Unicode* uPtr = uni;
while (qPtr != qEnd) {
- *(uPtr++) = (*(qPtr++)).unicode();
+ *(uPtr++) = (*(qPtr++)).tqunicode();
}
*uPtr = 0;
diff --git a/src/cite/openoffice.cpp b/src/cite/openoffice.cpp
index 4712e95..3955677 100644
--- a/src/cite/openoffice.cpp
+++ b/src/cite/openoffice.cpp
@@ -31,7 +31,7 @@
#include <klocale.h>
#include <tqiconset.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqradiobutton.h>
#include <tqbuttongroup.h>
#include <tqfile.h>
@@ -43,7 +43,7 @@ class OpenOffice::Private {
friend class OpenOffice;
Private() : handler(0), port(-1) {
- KLibrary* library = Tellico::openLibrary(TQString::fromLatin1("tellico_ooo"));
+ KLibrary* library = Tellico::openLibrary(TQString::tqfromLatin1("tellico_ooo"));
if(library) {
void* func = library->symbol("handler");
if(func) {
@@ -79,11 +79,11 @@ bool OpenOffice::connect() {
return false;
}
- StatusBar::self()->setStatus(i18n("Connecting to OpenOffice.org..."));
+ StatusBar::self()->settqStatus(i18n("Connecting to OpenOffice.org..."));
if(d->port == -1) {
KConfigGroup config(kapp->config(), "OpenOffice.org");
- d->host = config.readEntry("Host", TQString::fromLatin1("localhost"));
+ d->host = config.readEntry("Host", TQString::tqfromLatin1("localhost"));
d->port = config.readNumEntry("Port", 2083);
d->pipe = config.readPathEntry("Pipe");
// the ooohandler will depend on pipe.isEmpty() to indicate the port should be used
@@ -116,7 +116,7 @@ bool OpenOffice::connect() {
break;
}
}
- StatusBar::self()->clearStatus();
+ StatusBar::self()->cleartqStatus();
return success;
}
@@ -136,7 +136,7 @@ bool OpenOffice::cite(Data::EntryVec entries_) {
return false;
}
- const TQString bibtex = TQString::fromLatin1("bibtex");
+ const TQString bibtex = TQString::tqfromLatin1("bibtex");
Data::FieldVec vec = coll->fields();
for(Data::EntryVecIt entry = entries_.begin(); entry != entries_.end(); ++entry) {
Cite::Map values;
@@ -165,7 +165,7 @@ bool OpenOffice::connectionDialog() {
true, i18n("OpenOffice.org Connection"),
KDialogBase::Ok|KDialogBase::Cancel|KDialogBase::Help);
- dlg.setHelp(TQString::fromLatin1("openoffice-org"));
+ dlg.setHelp(TQString::tqfromLatin1("openoffice-org"));
TQWidget* widget = new TQWidget(&dlg);
TQBoxLayout* topLayout = new TQVBoxLayout(widget, KDialog::spacingHint());
@@ -173,7 +173,7 @@ bool OpenOffice::connectionDialog() {
// is there a better way to do a multi-line label than to insert newlines in the text?
TQBoxLayout* blay = new TQHBoxLayout(topLayout);
TQLabel* l = new TQLabel(widget);
- l->setPixmap(DesktopIcon(TQString::fromLatin1("ooo_writer"), 64));
+ l->setPixmap(DesktopIcon(TQString::tqfromLatin1("ooo_writer"), 64));
blay->addWidget(l);
l = new TQLabel(widget);
l->setText(i18n("Tellico was unable to connect to OpenOffice.org. "
@@ -235,7 +235,7 @@ bool OpenOffice::connectionDialog() {
if(radioTCP->isChecked()) {
h = hostEdit->text();
if(h.isEmpty()) {
- h = TQString::fromLatin1("localhost");
+ h = TQString::tqfromLatin1("localhost");
}
p = portSpin->value();
} else {