summaryrefslogtreecommitdiffstats
path: root/src/cite/openoffice.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:57:51 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:57:51 -0600
commit2781e27b871150395a5a82e221684108641002b2 (patch)
tree57f4d7c01a48faef1a840fbe0de8f4ec1e5f606f /src/cite/openoffice.cpp
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/openoffice.cpp')
-rw-r--r--src/cite/openoffice.cpp18
1 files changed, 9 insertions, 9 deletions
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 {