The FListViewItem class now has a getData() and a setData() method

This commit is contained in:
Markus Gans 2018-09-26 19:25:15 +02:00
parent 9671586be0
commit affdf6fe11
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2018-09-26 Markus Gans <guru.mail@muenster.de>
* The FListViewItem class now has a getData() and a setData() method
similar to the FListBoxItem class.
2018-09-24 Markus Gans <guru.mail@muenster.de>
* Stricter use of the keyword virtual
* Add a first steps document

View File

@ -93,10 +93,12 @@ class FListViewItem : public FObject
const char* getClassName() const;
uInt getColumnCount() const;
FString getText (int) const;
FWidget::data_ptr getData() const;
uInt getDepth() const;
// Mutator
void setText (int, const FString&);
void setData (FWidget::data_ptr);
// Inquiry
bool isExpand() const;
@ -140,6 +142,14 @@ inline const char* FListViewItem::getClassName() const
inline uInt FListViewItem::getColumnCount() const
{ return uInt(column_list.size()); }
//----------------------------------------------------------------------
inline FWidget::data_ptr FListViewItem::getData() const
{ return data_pointer; }
//----------------------------------------------------------------------
inline void FListViewItem::setData (FWidget::data_ptr data)
{ data_pointer = data; }
//----------------------------------------------------------------------
inline bool FListViewItem::isExpand() const
{ return is_expand; }