summaryrefslogtreecommitdiffstats
path: root/kcontrol/kcontrol/moduletreeview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
commit8155225c9be993acc0512956416d195edfef4eb9 (patch)
treede4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /kcontrol/kcontrol/moduletreeview.cpp
parent364641b8e0279758d236af39abd138d379328a19 (diff)
downloadtdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz
tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/kcontrol/moduletreeview.cpp')
-rw-r--r--kcontrol/kcontrol/moduletreeview.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kcontrol/kcontrol/moduletreeview.cpp b/kcontrol/kcontrol/moduletreeview.cpp
index 6f767ab20..d685f7fe8 100644
--- a/kcontrol/kcontrol/moduletreeview.cpp
+++ b/kcontrol/kcontrol/moduletreeview.cpp
@@ -49,7 +49,7 @@ static TQPixmap appIcon(const TQString &iconName)
return normal;
}
-class ModuleTreeWhatsThis : public QWhatsThis
+class ModuleTreeWhatsThis : public TQWhatsThis
{
public:
ModuleTreeWhatsThis( ModuleTreeView* tree)
@@ -133,9 +133,9 @@ void ModuleTreeView::fill(ModuleTreeItem *parent, const TQString &parentPath)
-TQSize ModuleTreeView::sizeHint() const
+TQSize ModuleTreeView::tqsizeHint() const
{
- return TQListView::sizeHint().boundedTo(
+ return TQListView::tqsizeHint().boundedTo(
TQSize( fontMetrics().maxWidth()*35, QWIDGETSIZE_MAX) );
}
@@ -166,7 +166,7 @@ void ModuleTreeView::expandItem(TQListViewItem *item, TQPtrList<TQListViewItem>
{
while (item)
{
- setOpen(item, parentList->contains(item));
+ setOpen(item, parentList-.tqcontains(item));
if (item->childCount() != 0)
expandItem(item->firstChild(), parentList);
@@ -312,7 +312,7 @@ void ModuleTreeItem::setPixmap(int column, const TQPixmap& pm)
{
if (!pm.isNull())
{
- ModuleTreeItem* p = dynamic_cast<ModuleTreeItem*>(parent());
+ ModuleTreeItem* p = dynamic_cast<ModuleTreeItem*>(tqparent());
if (p)
p->regChildIconWidth(pm.width());
}
@@ -331,7 +331,7 @@ void ModuleTreeItem::paintCell( TQPainter * p, const TQColorGroup & cg, int colu
if (!pixmap(0))
{
int offset = 0;
- ModuleTreeItem* parentItem = dynamic_cast<ModuleTreeItem*>(parent());
+ ModuleTreeItem* parentItem = dynamic_cast<ModuleTreeItem*>(tqparent());
if (parentItem)
{
offset = parentItem->maxChildIconWidth();
@@ -356,7 +356,7 @@ void ModuleTreeItem::setGroup(const TQString &path)
{
KServiceGroup::Ptr group = KServiceGroup::group(path);
TQString defName = path.left(path.length()-1);
- int pos = defName.findRev('/');
+ int pos = defName.tqfindRev('/');
if (pos >= 0)
defName = defName.mid(pos+1);
if (group && group->isValid())