summaryrefslogtreecommitdiffstats
path: root/src/common/gui/list_view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/gui/list_view.cpp')
-rw-r--r--src/common/gui/list_view.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/gui/list_view.cpp b/src/common/gui/list_view.cpp
index 9bce72c..d500f7b 100644
--- a/src/common/gui/list_view.cpp
+++ b/src/common/gui/list_view.cpp
@@ -18,7 +18,7 @@
//----------------------------------------------------------------------------
ListView::ListView(TQWidget *parent, const char *name)
- : KListView(parent, name)
+ : TDEListView(parent, name)
{
TQToolTip::remove(this);
_tooltip = new ListViewToolTip(this);
@@ -37,7 +37,7 @@ TQString ListView::tooltip(const TQListViewItem &, int) const
void ListView::clear()
{
_editItems.clear();
- KListView::clear();
+ TDEListView::clear();
}
bool ListView::eventFilter(TQObject *o, TQEvent *e)
@@ -79,7 +79,7 @@ bool ListView::eventFilter(TQObject *o, TQEvent *e)
}
}
}
- return KListView::eventFilter(o, e);
+ return TDEListView::eventFilter(o, e);
}
void ListView::stopRenaming(bool force)
@@ -109,14 +109,14 @@ void ListViewToolTip::maybeTip(const TQPoint &p)
//----------------------------------------------------------------------------
EditListViewItem::EditListViewItem(ListView *list)
- : KListViewItem(list), _renaming(false)
+ : TDEListViewItem(list), _renaming(false)
{
setRenameEnabled(0, true);
list->_editItems.append(this);
}
-EditListViewItem::EditListViewItem(KListViewItem *item)
- : KListViewItem(item), _renaming(false)
+EditListViewItem::EditListViewItem(TDEListViewItem *item)
+ : TDEListViewItem(item), _renaming(false)
{
setRenameEnabled(0, true);
static_cast<ListView *>(listView())->_editItems.append(this);
@@ -132,7 +132,7 @@ void EditListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int colum
{
if ( column<int(_editWidgets.count()) && _editWidgets[column] )
p->fillRect(0, 0, width, height(), cg.color(TQColorGroup::Background));
- else KListViewItem::paintCell(p, cg, column, width, align);
+ else TDEListViewItem::paintCell(p, cg, column, width, align);
}
void EditListViewItem::startRename()
@@ -140,7 +140,7 @@ void EditListViewItem::startRename()
if ( !renameEnabled(0) ) return;
TQListView *lv = listView();
if ( !lv ) return;
- KListViewItem::startRename(0);
+ TDEListViewItem::startRename(0);
if (renameBox) {
renameBox->removeEventFilter(lv);
renameBox->hide();
@@ -212,7 +212,7 @@ void EditListViewItem::renameDone(bool force)
int EditListViewItem::width(const TQFontMetrics &fm, const TQListView *lv, int col) const
{
- int w = KListViewItem::width(fm, lv, col);
+ int w = TDEListViewItem::width(fm, lv, col);
TQWidget *edit = editWidgetFactory(col);
if ( edit==0 ) return w;
w = TQMAX(w, edit->sizeHint().width());