summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/objecttreeview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:02:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:02:43 -0600
commitaea627236e4de24599c3e30617cf264c3c1b7d40 (patch)
tree467e13ca5a7eb0ab292259289ecc3572f53c5eae /kexi/formeditor/objecttreeview.cpp
parent786304c6211f35ddc4cdd54b7aa7985fef4a2e70 (diff)
downloadkoffice-aea627236e4de24599c3e30617cf264c3c1b7d40.tar.gz
koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kexi/formeditor/objecttreeview.cpp')
-rw-r--r--kexi/formeditor/objecttreeview.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kexi/formeditor/objecttreeview.cpp b/kexi/formeditor/objecttreeview.cpp
index 82cb67bb..5146576c 100644
--- a/kexi/formeditor/objecttreeview.cpp
+++ b/kexi/formeditor/objecttreeview.cpp
@@ -35,13 +35,13 @@
using namespace KFormDesigner;
ObjectTreeViewItem::ObjectTreeViewItem(ObjectTreeViewItem *parent, ObjectTreeItem *item)
- : KListViewItem(parent, item->name(), item->className())
+ : TDEListViewItem(parent, item->name(), item->className())
{
m_item = item;
}
-ObjectTreeViewItem::ObjectTreeViewItem(KListView *list, ObjectTreeItem *item)
- : KListViewItem(list, item ? item->name() : TQString(), item ? item->className() : TQString())
+ObjectTreeViewItem::ObjectTreeViewItem(TDEListView *list, ObjectTreeItem *item)
+ : TDEListViewItem(list, item ? item->name() : TQString(), item ? item->className() : TQString())
{
m_item = item;
}
@@ -67,7 +67,7 @@ ObjectTreeViewItem::paintCell(TQPainter *p, const TQColorGroup & cg, int column,
{
if(!m_item)
return;
- KListViewItem::paintCell(p, cg, column, width, align);
+ TDEListViewItem::paintCell(p, cg, column, width, align);
}
else
{
@@ -148,7 +148,7 @@ ObjectTreeViewItem::paintBranches(TQPainter *p, const TQColorGroup &cg, int w, i
void
ObjectTreeViewItem::setup()
{
- KListViewItem::setup();
+ TDEListViewItem::setup();
if(!m_item)
setHeight(0);
}
@@ -158,13 +158,13 @@ ObjectTreeViewItem::setOpen( bool o )
{
//don't allow to collapse the node, user may be tricked because we're not displaying [+] marks
if (o)
- KListViewItem::setOpen(o);
+ TDEListViewItem::setOpen(o);
}
// ObjectTreeView itself ----------------
ObjectTreeView::ObjectTreeView(TQWidget *parent, const char *name, bool tabStop)
- : KListView(parent, name)
+ : TDEListView(parent, name)
, m_form(0)
{
addColumn(i18n("Name"), 130);
@@ -177,7 +177,7 @@ ObjectTreeView::ObjectTreeView(TQWidget *parent, const char *name, bool tabStop)
{
setSelectionModeExt(Extended);
connect(this, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()));
- connect(this, TQT_SIGNAL(contextMenu(KListView *, TQListViewItem *, const TQPoint&)), this, TQT_SLOT(displayContextMenu(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(this, TQT_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint&)), this, TQT_SLOT(displayContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
}
setFullWidth(true);
@@ -194,7 +194,7 @@ TQSize
ObjectTreeView::sizeHint() const
{
return TQSize( TQFontMetrics(font()).width(columnText(0)+columnText(1)+" "),
- KListView::sizeHint().height());
+ TDEListView::sizeHint().height());
}
TQString
@@ -210,7 +210,7 @@ ObjectTreeView::slotColumnSizeChanged(int)
}
void
-ObjectTreeView::displayContextMenu(KListView *list, TQListViewItem *item, const TQPoint &)
+ObjectTreeView::displayContextMenu(TDEListView *list, TQListViewItem *item, const TQPoint &)
{
if(list != this || !m_form || !item)
return;