summaryrefslogtreecommitdiffstats
path: root/kdeprint/lpr/lprsettings.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
commitbab40890696ec68c337dc290880423a0602b83c7 (patch)
tree6ba03f720b1fa88235ba339e7aedb4455430357e /kdeprint/lpr/lprsettings.cpp
parentf7e71d47719ab6094cf4a9fafffa5ea351973522 (diff)
downloadtdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz
tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/lpr/lprsettings.cpp')
-rw-r--r--kdeprint/lpr/lprsettings.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kdeprint/lpr/lprsettings.cpp b/kdeprint/lpr/lprsettings.cpp
index 15eef4126..a1a632a0f 100644
--- a/kdeprint/lpr/lprsettings.cpp
+++ b/kdeprint/lpr/lprsettings.cpp
@@ -55,7 +55,7 @@ void LprSettings::init()
// LPR/LPRng mode
KConfig *conf = KMFactory::self()->printConfig();
conf->setGroup("LPR");
- QString modestr = conf->readEntry("Mode");
+ TQString modestr = conf->readEntry("Mode");
if (modestr == "LPRng")
m_mode = LPRng;
else if (modestr == "LPR")
@@ -70,7 +70,7 @@ void LprSettings::init()
}
// Printcap file
- m_printcapfile = TQString::null;
+ m_printcapfile = TQString();
m_local = true;
// Spool directory
@@ -89,14 +89,14 @@ TQString LprSettings::printcapFile()
TQFile cf(LPDCONF);
if (cf.open(IO_ReadOnly))
{
- QTextStream t(&cf);
- QString line;
+ TQTextStream t(&cf);
+ TQString line;
while (!t.atEnd())
{
line = t.readLine().stripWhiteSpace();
if (line.startsWith("printcap_path"))
{
- QString filename = line.mid(14).stripWhiteSpace();
+ TQString filename = line.mid(14).stripWhiteSpace();
if (filename[0] != '|')
m_printcapfile = filename;
else
@@ -120,14 +120,14 @@ TQString LprSettings::defaultRemoteHost()
TQFile cf(LPDCONF);
if (cf.open(IO_ReadOnly))
{
- QTextStream t(&cf);
- QString line;
+ TQTextStream t(&cf);
+ TQString line;
while (!t.atEnd())
{
line = t.readLine().stripWhiteSpace();
if (line.startsWith("default_remote_host"))
{
- QString hostname = line.mid(20).stripWhiteSpace();
+ TQString hostname = line.mid(20).stripWhiteSpace();
m_defaultremotehost = hostname;
}
}