Rename a number of old tq methods that are no longer tq specific

pull/2/head
Timothy Pearson 13 years ago
parent 58cb4c3b8f
commit ab51f6a136

@ -24,7 +24,7 @@
#include <tqdom.h> #include <tqdom.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqstringlist.h> #include <tqstringlist.h>
#include <tqtextstream.h> #include <textstream.h>
// local includes // local includes
#include "classgen.h" #include "classgen.h"
@ -945,13 +945,13 @@ bool ClassGenerator::finishStreams(const TQString& baseName,
writeFileFooter(headerStream); writeFileFooter(headerStream);
writeFileFooter(sourceStream); writeFileFooter(sourceStream);
TQIODevice* tqdevice = headerStream.tqdevice(); TQIODevice* device = headerStream.device();
headerStream.unsetDevice(); headerStream.unsetDevice();
delete tqdevice; delete device;
tqdevice = sourceStream.tqdevice(); device = sourceStream.device();
sourceStream.unsetDevice(); sourceStream.unsetDevice();
delete tqdevice; delete device;
return true; return true;
} }

@ -28,7 +28,7 @@
#include <tqdom.h> #include <tqdom.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqmap.h> #include <tqmap.h>
#include <tqtextstream.h> #include <textstream.h>
// local includes // local includes
#include "classgen.h" #include "classgen.h"

@ -22,7 +22,7 @@
// TQt includes // TQt includes
#include <tqdom.h> #include <tqdom.h>
#include <tqtextstream.h> #include <textstream.h>
// local includes // local includes
#include "methodgen.h" #include "methodgen.h"

@ -63,7 +63,7 @@ TQT_DBusConnectionManager* manager() {
TQT_DBusConnectionPrivate *TQT_DBusConnectionManager::connection(const TQString &name) const TQT_DBusConnectionPrivate *TQT_DBusConnectionManager::connection(const TQString &name) const
{ {
if (name == TQString::tqfromLatin1(TQT_DBusConnection::default_connection_name)) if (name == TQString::fromLatin1(TQT_DBusConnection::default_connection_name))
return default_connection; return default_connection;
ConnectionHash::const_iterator it = connectionHash.find(name); ConnectionHash::const_iterator it = connectionHash.find(name);
@ -74,7 +74,7 @@ TQT_DBusConnectionPrivate *TQT_DBusConnectionManager::connection(const TQString
void TQT_DBusConnectionManager::removeConnection(const TQString &name) void TQT_DBusConnectionManager::removeConnection(const TQString &name)
{ {
TQT_DBusConnectionPrivate *d = 0; TQT_DBusConnectionPrivate *d = 0;
if (name == TQString::tqfromLatin1(TQT_DBusConnection::default_connection_name)) { if (name == TQString::fromLatin1(TQT_DBusConnection::default_connection_name)) {
d = default_connection; d = default_connection;
default_connection = 0; default_connection = 0;
} else { } else {
@ -132,7 +132,7 @@ void qDBusBindToApplication()
void TQT_DBusConnectionManager::setConnection(const TQString &name, TQT_DBusConnectionPrivate *c) void TQT_DBusConnectionManager::setConnection(const TQString &name, TQT_DBusConnectionPrivate *c)
{ {
if (name == TQString::tqfromLatin1(TQT_DBusConnection::default_connection_name)) if (name == TQString::fromLatin1(TQT_DBusConnection::default_connection_name))
default_connection = c; default_connection = c;
else else
connectionHash[name] = c; connectionHash[name] = c;

Loading…
Cancel
Save