24 #ifndef CUSTOMLISTVIEWITEM_H
25 #define CUSTOMLISTVIEWITEM_H
29 #include <tdelistview.h>
32 class CustomListViewItem : public TDEListViewItem
35 CustomListViewItem( T data, TDEListView *parent ) :
36 TDEListViewItem( parent ), mData( data ) { updateItem(); };
37 CustomListViewItem( T data, TDEListView *parent, TDEListViewItem* after ) :
38 TDEListViewItem( parent, after ), mData( data ) { updateItem(); };
39 ~CustomListViewItem() {};
43 T data() const { return mData; }
45 TQString key( int column, bool) const
47 TQMap<int,TQString>::ConstIterator it = mKeyMap.find(column);
48 if (it == mKeyMap.end()) return text(column);
52 void setSortKey( int column, const TQString &key)
54 mKeyMap.insert(column,key);
60 TQMap<int,TQString> mKeyMap;
|