summaryrefslogtreecommitdiffstats
path: root/tdeprint/foomatic/kmfoomaticmanager.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-25 12:03:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-25 17:50:49 +0900
commit04d353236066b9aa85f6387fa05d3d37b75a7dd2 (patch)
tree3781200cbdb5db08e22cb07dd16c2dcdf6402b98 /tdeprint/foomatic/kmfoomaticmanager.cpp
parentb0f1961286230520573e2433b0ed4562718ce7a3 (diff)
downloadtdelibs-04d353236066b9aa85f6387fa05d3d37b75a7dd2.tar.gz
tdelibs-04d353236066b9aa85f6387fa05d3d37b75a7dd2.zip
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 4c0dae60b2fbc60996fc8f4bd29ee6219b869527)
Diffstat (limited to 'tdeprint/foomatic/kmfoomaticmanager.cpp')
-rw-r--r--tdeprint/foomatic/kmfoomaticmanager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tdeprint/foomatic/kmfoomaticmanager.cpp b/tdeprint/foomatic/kmfoomaticmanager.cpp
index e1e741003..6953be7cc 100644
--- a/tdeprint/foomatic/kmfoomaticmanager.cpp
+++ b/tdeprint/foomatic/kmfoomaticmanager.cpp
@@ -76,7 +76,7 @@ DrMain* KMFoomaticManager::loadPrinterDriver(KMPrinter *printer, bool)
return NULL;
}
- QString cmd = "foomatic-combo-xml -p ";
+ TQString cmd = "foomatic-combo-xml -p ";
cmd += TDEProcess::quote(printer->option("printer"));
cmd += " -d ";
cmd += TDEProcess::quote(printer->option("driver"));
@@ -99,7 +99,7 @@ KMPrinter* KMFoomaticManager::createPrinterFromElement(TQDomElement *elem)
printer->setState(KMPrinter::Idle);
/*if (printer->name().find('/') != -1)
{
- QString s(printer->name());
+ TQString s(printer->name());
int p = s.find('/');
printer->setPrinterName(s.left(p));
printer->setInstanceName(s.mid(p+1));
@@ -136,7 +136,7 @@ DrMain* KMFoomaticManager::createDriverFromXML(TQDomElement *elem)
{
driver->set("manufacturer", pelem.namedItem("make").toElement().text());
driver->set("model", pelem.namedItem("model").toElement().text());
- QString s = TQString::fromLatin1("%1 %2 (%3)").arg(driver->get("manufacturer")).arg(driver->get("model")).arg(delem.namedItem("name").toElement().text());
+ TQString s = TQString::fromLatin1("%1 %2 (%3)").arg(driver->get("manufacturer")).arg(driver->get("model")).arg(delem.namedItem("name").toElement().text());
driver->set("description", s);
driver->set("text", s);
@@ -148,14 +148,14 @@ DrMain* KMFoomaticManager::createDriverFromXML(TQDomElement *elem)
{
if (o.tagName() == "option")
{
- QString type = o.attribute("type");
+ TQString type = o.attribute("type");
DrBase *dropt(0);
if (type == "bool" || type == "enum")
{
if (type == "bool") dropt = new DrBooleanOption();
else dropt = new DrListOption();
- QString defval = o.namedItem("arg_defval").toElement().text(), valuetext;
+ TQString defval = o.namedItem("arg_defval").toElement().text(), valuetext;
QDomNode val = o.namedItem("enum_vals").firstChild();
while (!val.isNull())
{
@@ -177,7 +177,7 @@ DrMain* KMFoomaticManager::createDriverFromXML(TQDomElement *elem)
else dropt = new DrFloatOption();
dropt->set("minval", o.namedItem("arg_min").toElement().text());
dropt->set("maxval", o.namedItem("arg_max").toElement().text());
- QString defval = o.namedItem("arg_defval").toElement().text();
+ TQString defval = o.namedItem("arg_defval").toElement().text();
dropt->set("default", defval);
dropt->setValueText(defval);
}