summaryrefslogtreecommitdiffstats
path: root/kdeprint/driveritem.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/driveritem.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/driveritem.cpp')
-rw-r--r--kdeprint/driveritem.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kdeprint/driveritem.cpp b/kdeprint/driveritem.cpp
index 026c369a6..7bb1715aa 100644
--- a/kdeprint/driveritem.cpp
+++ b/kdeprint/driveritem.cpp
@@ -20,20 +20,20 @@
#include "driveritem.h"
#include "driver.h"
-#include <qpainter.h>
+#include <tqpainter.h>
#include <kiconloader.h>
#include <kdebug.h>
-DriverItem::DriverItem(QListView *parent, DrBase *item)
-: QListViewItem(parent), m_item(item), m_conflict(false)
+DriverItem::DriverItem(TQListView *parent, DrBase *item)
+: TQListViewItem(parent), m_item(item), m_conflict(false)
{
setOpen(depth() < 3);
setPixmap(0,SmallIcon("fileprint"));
updateText();
}
-DriverItem::DriverItem(QListViewItem *parent, QListViewItem *after, DrBase *item)
-: QListViewItem(parent, after), m_item(item), m_conflict(false)
+DriverItem::DriverItem(TQListViewItem *parent, TQListViewItem *after, DrBase *item)
+: TQListViewItem(parent, after), m_item(item), m_conflict(false)
{
setOpen(depth() < 3);
if (item) setPixmap(0,SmallIcon((item->isOption() ? "document" : "folder")));
@@ -46,7 +46,7 @@ void DriverItem::updateText()
{
QString s(m_item->get("text"));
if (m_item->isOption())
- s.append(QString::fromLatin1(": <%1>").arg(m_item->prettyText()));
+ s.append(TQString::fromLatin1(": <%1>").arg(m_item->prettyText()));
if (m_item->type() == DrBase::List)
{
// remove all children: something has changed (otherwise this
@@ -69,7 +69,7 @@ void DriverItem::updateText()
widthChanged();
}
-void DriverItem::paintCell(QPainter *p, const QColorGroup& cg, int, int width, int)
+void DriverItem::paintCell(TQPainter *p, const TQColorGroup& cg, int, int width, int)
{
// background
p->fillRect(0, 0, width, height(), cg.base());
@@ -107,7 +107,7 @@ void DriverItem::paintCell(QPainter *p, const QColorGroup& cg, int, int width, i
p->drawText(w,0,w1,height(),Qt::AlignLeft|Qt::AlignVCenter,s);
w += w1;
p->setPen(cg.text());
- s = QString::fromLatin1(">");
+ s = TQString::fromLatin1(">");
w1 = p->fontMetrics().width(s);
p->drawText(w,0,w1,height(),Qt::AlignLeft|Qt::AlignVCenter,s);
}