summaryrefslogtreecommitdiffstats
path: root/kdeprint/lpr/lprsettings.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/lpr/lprsettings.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/lpr/lprsettings.cpp')
-rw-r--r--kdeprint/lpr/lprsettings.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeprint/lpr/lprsettings.cpp b/kdeprint/lpr/lprsettings.cpp
index 90662a94c..15eef4126 100644
--- a/kdeprint/lpr/lprsettings.cpp
+++ b/kdeprint/lpr/lprsettings.cpp
@@ -22,16 +22,16 @@
#include "kmfactory.h"
#include <kconfig.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
#define LPDCONF "/etc/lpd.conf"
#define PRINTCAP "/etc/printcap"
LprSettings* LprSettings::m_self = 0;
-LprSettings::LprSettings(QObject *parent, const char *name)
-: QObject(parent, name), KPReloadObject(true)
+LprSettings::LprSettings(TQObject *parent, const char *name)
+: TQObject(parent, name), KPReloadObject(true)
{
init();
}
@@ -63,21 +63,21 @@ void LprSettings::init()
else
{
// try to guess
- if (QFile::exists(LPDCONF))
+ if (TQFile::exists(LPDCONF))
m_mode = LPRng;
else
m_mode = LPR;
}
// Printcap file
- m_printcapfile = QString::null;
+ m_printcapfile = TQString::null;
m_local = true;
// Spool directory
m_spooldir = "/var/spool/lpd";
}
-QString LprSettings::printcapFile()
+TQString LprSettings::printcapFile()
{
if (m_printcapfile.isEmpty())
{
@@ -86,7 +86,7 @@ QString LprSettings::printcapFile()
if (m_mode == LPRng)
{
// look into /etc/lpd/conf file
- QFile cf(LPDCONF);
+ TQFile cf(LPDCONF);
if (cf.open(IO_ReadOnly))
{
QTextStream t(&cf);
@@ -112,12 +112,12 @@ QString LprSettings::printcapFile()
return m_printcapfile;
}
-QString LprSettings::defaultRemoteHost()
+TQString LprSettings::defaultRemoteHost()
{
if (m_defaultremotehost.isEmpty())
{
m_defaultremotehost = "localhost";
- QFile cf(LPDCONF);
+ TQFile cf(LPDCONF);
if (cf.open(IO_ReadOnly))
{
QTextStream t(&cf);