summaryrefslogtreecommitdiffstats
path: root/src/cite/openoffice.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:34:15 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:34:15 -0600
commit031454e56009d576589c28757f6c6fcf4884095e (patch)
treead4c9959d05a814c9090e8fe63ba27057903271b /src/cite/openoffice.cpp
parent54011e0e1af8cd96162160ecf5d361a59a2c733e (diff)
downloadtellico-031454e56009d576589c28757f6c6fcf4884095e.tar.gz
tellico-031454e56009d576589c28757f6c6fcf4884095e.zip
Rename a number of old tq methods that are no longer tq specific
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 3955677..4712e95 100644
--- a/src/cite/openoffice.cpp
+++ b/src/cite/openoffice.cpp
@@ -31,7 +31,7 @@
#include <klocale.h>
#include <tqiconset.h>
-#include <tqlayout.h>
+#include <layout.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::tqfromLatin1("tellico_ooo"));
+ KLibrary* library = Tellico::openLibrary(TQString::fromLatin1("tellico_ooo"));
if(library) {
void* func = library->symbol("handler");
if(func) {
@@ -79,11 +79,11 @@ bool OpenOffice::connect() {
return false;
}
- StatusBar::self()->settqStatus(i18n("Connecting to OpenOffice.org..."));
+ StatusBar::self()->setStatus(i18n("Connecting to OpenOffice.org..."));
if(d->port == -1) {
KConfigGroup config(kapp->config(), "OpenOffice.org");
- d->host = config.readEntry("Host", TQString::tqfromLatin1("localhost"));
+ d->host = config.readEntry("Host", TQString::fromLatin1("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()->cleartqStatus();
+ StatusBar::self()->clearStatus();
return success;
}
@@ -136,7 +136,7 @@ bool OpenOffice::cite(Data::EntryVec entries_) {
return false;
}
- const TQString bibtex = TQString::tqfromLatin1("bibtex");
+ const TQString bibtex = TQString::fromLatin1("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::tqfromLatin1("openoffice-org"));
+ dlg.setHelp(TQString::fromLatin1("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::tqfromLatin1("ooo_writer"), 64));
+ l->setPixmap(DesktopIcon(TQString::fromLatin1("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::tqfromLatin1("localhost");
+ h = TQString::fromLatin1("localhost");
}
p = portSpin->value();
} else {