Wt  4.10.4
Public Member Functions | Protected Member Functions | List of all members
Wt::WStandardItemModel Class Reference

A standard data model, which stores its data in memory. More...

#include <Wt/WStandardItemModel.h>

Inheritance diagram for Wt::WStandardItemModel:
[legend]

Public Member Functions

 WStandardItemModel ()
 Creates a new standard item model.
 
 WStandardItemModel (int rows, int columns)
 Creates a new standard item model with an initial geometry. More...
 
 ~WStandardItemModel ()
 Destructor.
 
void clear ()
 Erases all data in the model. More...
 
WStandardIteminvisibleRootItem () const
 Returns the invisible root item. More...
 
WModelIndex indexFromItem (const WStandardItem *item) const
 Returns the model index for a particular item. More...
 
WStandardItemitemFromIndex (const WModelIndex &index) const
 Returns the standard item that corresponds to a model index. More...
 
void appendColumn (std::vector< std::unique_ptr< WStandardItem > > items)
 Adds a single column of top level items. More...
 
void insertColumn (int column, std::vector< std::unique_ptr< WStandardItem > > items)
 Inserts a single column of top level items. More...
 
void appendRow (std::vector< std::unique_ptr< WStandardItem > > items)
 Adds a single row of top level items. More...
 
void insertRow (int row, std::vector< std::unique_ptr< WStandardItem > > items)
 Inserts a single row of top level items. More...
 
void appendRow (std::unique_ptr< WStandardItem > item)
 Appends a single row containing a single item. More...
 
void insertRow (int row, std::unique_ptr< WStandardItem > item)
 Inserts a single row containing a single item. More...
 
WStandardItemitem (int row, int column=0) const
 Returns a toplevel item. More...
 
void setItem (int row, int column, std::unique_ptr< WStandardItem > item)
 Sets a toplevel item. More...
 
WStandardItemitemPrototype () const
 Returns the item prototype. More...
 
void setItemPrototype (std::unique_ptr< WStandardItem > item)
 Sets the item prototype. More...
 
std::vector< std::unique_ptr< WStandardItem > > takeColumn (int column)
 Takes a column out of the model. More...
 
std::vector< std::unique_ptr< WStandardItem > > takeRow (int row)
 Takes a row out of the model. More...
 
std::unique_ptr< WStandardItemtakeItem (int row, int column=0)
 Takes an item out of the model. More...
 
void setHeaderFlags (int section, Orientation orientation, WFlags< HeaderFlag > flags)
 Sets header flags. More...
 
void setSortRole (ItemDataRole role)
 Set the role used to sort the model. More...
 
ItemDataRole sortRole () const
 Returns the role used to sort the model. More...
 
virtual void sort (int column, SortOrder order=SortOrder::Ascending) override
 Sorts the model according to a particular column. More...
 
Signal< WStandardItem * > & itemChanged ()
 Signal emitted when an item is changed. More...
 
bool insertRow (int row, const WModelIndex &parent=WModelIndex())
 Inserts one row. More...
 
bool insertColumn (int column, const WModelIndex &parent=WModelIndex())
 Inserts one column. More...
 
- Public Member Functions inherited from Wt::WAbstractItemModel
 WAbstractItemModel ()
 Creates a new data model.
 
virtual int columnCount (const WModelIndex &parent=WModelIndex()) const =0
 Returns the number of columns. More...
 
virtual int rowCount (const WModelIndex &parent=WModelIndex()) const =0
 Returns the number of rows. More...
 
virtual WFlags< ItemFlagflags (const WModelIndex &index) const
 Returns the flags for an item. More...
 
virtual WFlags< HeaderFlagheaderFlags (int section, Orientation orientation=Orientation::Horizontal) const
 Returns the flags for a header. More...
 
virtual bool hasChildren (const WModelIndex &index) const
 Returns if there are children at an index. More...
 
virtual WModelIndex parent (const WModelIndex &index) const =0
 Returns the parent for a model index. More...
 
virtual cpp17::any data (const WModelIndex &index, ItemDataRole role=ItemDataRole::Display) const =0
 Returns data at a specified model index for the given role. More...
 
virtual DataMap itemData (const WModelIndex &index) const
 Returns all data at a specific index. More...
 
virtual cpp17::any headerData (int section, Orientation orientation=Orientation::Horizontal, ItemDataRole role=ItemDataRole::Display) const
 Returns the row or column header data. More...
 
virtual WModelIndex index (int row, int column, const WModelIndex &parent=WModelIndex()) const =0
 Returns the child index for the given row and column. More...
 
virtual WModelIndexList match (const WModelIndex &start, ItemDataRole role, const cpp17::any &value, int hits=-1, WFlags< MatchFlag > flags=WFlags< MatchFlag >(MatchFlag::StartsWith|MatchFlag::Wrap)) const
 Returns an index list for data items that match. More...
 
cpp17::any data (int row, int column, ItemDataRole role=ItemDataRole::Display, const WModelIndex &parent=WModelIndex()) const
 Returns the data item at the given column and row. More...
 
virtual bool hasIndex (int row, int column, const WModelIndex &parent=WModelIndex()) const
 Returns if an index at the given position is valid (i.e. falls within the column-row bounds). More...
 
virtual bool insertColumns (int column, int count, const WModelIndex &parent=WModelIndex())
 Inserts one or more columns. More...
 
virtual bool insertRows (int row, int count, const WModelIndex &parent=WModelIndex())
 Inserts one or more rows. More...
 
virtual bool removeColumns (int column, int count, const WModelIndex &parent=WModelIndex())
 Removes columns. More...
 
virtual bool removeRows (int row, int count, const WModelIndex &parent=WModelIndex())
 Removes rows. More...
 
virtual bool setData (const WModelIndex &index, const cpp17::any &value, ItemDataRole role=ItemDataRole::Edit)
 Sets data at the given model index. More...
 
virtual bool setItemData (const WModelIndex &index, const DataMap &values)
 Sets data at the given model index. More...
 
virtual bool setHeaderData (int section, Orientation orientation, const cpp17::any &value, ItemDataRole role=ItemDataRole::Edit)
 Sets header data for a column or row. More...
 
bool setHeaderData (int section, const cpp17::any &value)
 Sets column header data. More...
 
virtual void expandColumn (int column)
 Expands a column. More...
 
virtual void collapseColumn (int column)
 Collapses a column. More...
 
virtual void * toRawIndex (const WModelIndex &index) const
 Converts a model index to a raw pointer that remains valid while the model's layout is changed. More...
 
virtual WModelIndex fromRawIndex (void *rawIndex) const
 Converts a raw pointer to a model index. More...
 
virtual std::string mimeType () const
 Returns a mime-type for dragging a set of indexes. More...
 
virtual std::vector< std::string > acceptDropMimeTypes () const
 Returns a list of mime-types that could be accepted for a drop event. More...
 
virtual void dropEvent (const WDropEvent &e, DropAction action, int row, int column, const WModelIndex &parent)
 Handles a drop event. More...
 
virtual void dropEvent (const WDropEvent &e, DropAction action, const WModelIndex &index, Wt::Side side)
 Handles a drop event. More...
 
bool insertColumn (int column, const WModelIndex &parent=WModelIndex())
 Inserts one column. More...
 
bool insertRow (int row, const WModelIndex &parent=WModelIndex())
 Inserts one row. More...
 
bool removeColumn (int column, const WModelIndex &parent=WModelIndex())
 Removes one column. More...
 
bool removeRow (int row, const WModelIndex &parent=WModelIndex())
 Removes one row. More...
 
bool setData (int row, int column, const cpp17::any &value, ItemDataRole role=ItemDataRole::Edit, const WModelIndex &parent=WModelIndex())
 Sets data at the given row and column. More...
 
virtual Signal< WModelIndex, int, int > & columnsAboutToBeInserted ()
 Signal emitted before a number of columns will be inserted. More...
 
virtual Signal< WModelIndex, int, int > & columnsAboutToBeRemoved ()
 Signal emitted before a number of columns will be removed. More...
 
virtual Signal< WModelIndex, int, int > & columnsInserted ()
 Signal emitted after a number of columns were inserted. More...
 
virtual Signal< WModelIndex, int, int > & columnsRemoved ()
 Signal emitted after a number of columns were removed. More...
 
virtual Signal< WModelIndex, int, int > & rowsAboutToBeInserted ()
 Signal emitted before a number of rows will be inserted. More...
 
virtual Signal< WModelIndex, int, int > & rowsAboutToBeRemoved ()
 Signal emitted before a number of rows will be removed. More...
 
virtual Signal< WModelIndex, int, int > & rowsInserted ()
 Signal emitted after a number of rows were inserted. More...
 
virtual Signal< WModelIndex, int, int > & rowsRemoved ()
 Signal emitted after a number of rows were removed. More...
 
virtual Signal< WModelIndex, WModelIndex > & dataChanged ()
 Signal emitted when some data was changed. More...
 
virtual Signal< Orientation, int, int > & headerDataChanged ()
 Signal emitted when some header data was changed. More...
 
virtual SignallayoutAboutToBeChanged ()
 Signal emitted when the layout is about to be changed. More...
 
virtual SignallayoutChanged ()
 Signal emitted when the layout is changed. More...
 
virtual SignalmodelReset ()
 Signal emitted when the model was reset. More...
 
- Public Member Functions inherited from Wt::WObject
void addChild (std::unique_ptr< WObject > child)
 Add a child WObject whose lifetime is determined by this WObject.
 
template<typename Child >
Child * addChild (std::unique_ptr< Child > child)
 Add a child WObject, returning a raw pointer. More...
 
std::unique_ptr< WObjectremoveChild (WObject *child)
 Remove a child WObject, so its lifetime is no longer determined by this WObject.
 
template<typename Child >
std::unique_ptr< Child > removeChild (Child *child)
 Remove a child WObject, so its lifetime is no longer determined by this WObject. More...
 
virtual const std::string id () const
 Returns the (unique) identifier for this object. More...
 
virtual void setObjectName (const std::string &name)
 Sets an object name. More...
 
virtual std::string objectName () const
 Returns the object name. More...
 
void resetLearnedSlots ()
 Resets learned stateless slot implementations. More...
 
template<class T >
void resetLearnedSlot (void(T::*method)())
 Resets a learned stateless slot implementation. More...
 
template<class T >
WStatelessSlot * implementStateless (void(T::*method)())
 Declares a slot to be stateless and learn client-side behaviour on first invocation. More...
 
template<class T >
WStatelessSlot * implementStateless (void(T::*method)(), void(T::*undoMethod)())
 Declares a slot to be stateless and learn client-side behaviour in advance. More...
 
void isNotStateless ()
 Marks the current function as not stateless. More...
 
template<class T >
WStatelessSlot * implementJavaScript (void(T::*method)(), const std::string &jsCode)
 Provides a JavaScript implementation for a method. More...
 
- Public Member Functions inherited from Wt::Core::observable
 observable () noexcept
 Default constructor.
 
virtual ~observable ()
 Destructor. More...
 
template<typename... Args, typename C >
auto bindSafe (void(C::*method)(Args...)) noexcept
 Protects a method call against object destruction. More...
 
template<typename... Args, typename C >
auto bindSafe (void(C::*method)(Args...) const) const noexcept
 Protects a const method call against object destruction. More...
 
template<typename Function >
auto bindSafe (const Function &function) noexcept
 Protects a function against object destruction. More...
 

Protected Member Functions

virtual void copyData (const WModelIndex &sIndex, const WModelIndex &dIndex) override
 Copy data to an index in this model. More...
 
- Protected Member Functions inherited from Wt::WAbstractItemModel
void reset ()
 Resets the model and invalidate any data. More...
 
WModelIndex createIndex (int row, int column, void *ptr) const
 Creates a model index for the given row and column. More...
 
WModelIndex createIndex (int row, int column, ::uint64_t id) const
 Creates a model index for the given row and column. More...
 
void beginInsertColumns (const WModelIndex &parent, int first, int last)
 Method to be called before inserting columns. More...
 
void beginInsertRows (const WModelIndex &parent, int first, int last)
 Method to be called before inserting rows. More...
 
void beginRemoveColumns (const WModelIndex &parent, int first, int last)
 Method to be called before removing columns. More...
 
void beginRemoveRows (const WModelIndex &parent, int first, int last)
 Method to be called before removing rows. More...
 
void endInsertColumns ()
 Method to be called after inserting columns. More...
 
void endInsertRows ()
 Method to be called after inserting rows. More...
 
void endRemoveColumns ()
 Method to be called after removing columns. More...
 
void endRemoveRows ()
 Method to be called after removing rows. More...
 
- Protected Member Functions inherited from Wt::WObject
virtual WStatelessSlot * getStateless (Method method)
 On-demand stateless slot implementation. More...
 

Additional Inherited Members

- Public Types inherited from Wt::WAbstractItemModel
typedef std::map< ItemDataRole, cpp17::any > DataMap
 Data map. More...
 
- Public Types inherited from Wt::WObject
typedef void(WObject::* Method) ()
 Typedef for a WObject method without arguments.
 

Detailed Description

A standard data model, which stores its data in memory.

The standard item model supports all features of WAbstractItemModel, and can thus be used to represent tables, trees and tree tables.

The data itself are organized in WStandardItem objects. There is one invisible root object (invisibleRootItem()) that holds the toplevel data. Most methods in this class that access or manipulate data internally operate on this root item.

If you want to use the model as a table, then you can use WStandardItemModel(int, int) to set the initial table size, and use the item() and setItem() methods to set data. You can change the geometry by inserting rows (insertRow()) or columns (insertColumn()) or removing rows (removeRow()) or columns (removeColumn()).

If you want to use the model as a tree (or tree table), then you can use the default constructor to start with an empty tree, and use the WStandardItem API on invisibleRootItem() to manipulate the tree root. When you are building a tree, the column count at each node is 1. When you are building a tree table, you can add additional columns of data for each internal node. Only the items in the first column have children that result in a hierarchical tree structure.

When using the model with a view class, you can use the itemFromIndex() and indexFromItem() models to translate between model indexes (that are used by the view class) and standard items.

Usage example for tabular data:

int rows = 5;
int columns = 4;
std::shared_ptr<Wt::WStandardItemModel> model =
std::make_shared<Wt::WStandardItemModel>(rows, columns);
for (int row = 0; row < rows; ++row) {
for (int column = 0; column < columns; ++column) {
auto item = std::make_unique<Wt::WStandardItem>();
item->setText("Item " + std::to_string(row)
+ ", " + std::to_string(column));
model->setItem(row, column, std::move(item));
}
}
WStandardItem * item(int row, int column=0) const
Returns a toplevel item.
void setText(const WString &text)
Sets the text.
Definition: WStandardItem.C:185

Usage example for tree-like data:

int topLevelRows = 5;
int secondLevelRows = 7;
auto model = std::make_shared<Wt::WStandardItemModel>();
Wt::WStandardItem *root = model->invisibleRootItem();
for (int row = 0; row < topLevelRows; ++row) {
auto topLevel = std::make_unique<Wt::WStandardItem>();
topLevel->setText("Item " + std::to_string(row));
for (int row2 = 0; row2 < secondLevelRows; ++row2) {
auto item = std::make_unique<Wt::WStandardItem>();
item->setText("Item " + std::to_string(row)
+ ": " + std::to_string(row2));
topLevel->appendRow(std::move(item));
}
root->appendRow(std::move(topLevel));
}
An item in a WStandardItemModel.
Definition: WStandardItem.h:48
void appendRow(std::vector< std::unique_ptr< WStandardItem > > items)
Add a single row of items.
Definition: WStandardItem.C:435

Constructor & Destructor Documentation

◆ WStandardItemModel()

Wt::WStandardItemModel::WStandardItemModel ( int  rows,
int  columns 
)

Creates a new standard item model with an initial geometry.

Creates a standard item model with a geometry of rows x columns. All items are set to 0.

Member Function Documentation

◆ appendColumn()

void Wt::WStandardItemModel::appendColumn ( std::vector< std::unique_ptr< WStandardItem > >  items)

Adds a single column of top level items.

Appends a single column of top level items. If necessary, the row count is increased.

Equivalent to:

insertColumn(columnCount(), std::move(items));
virtual int columnCount(const WModelIndex &parent=WModelIndex()) const =0
Returns the number of columns.
bool insertColumn(int column, const WModelIndex &parent=WModelIndex())
Inserts one column.
Definition: WAbstractItemModel.C:165
See also
insertColumn(), appendRow()

◆ appendRow() [1/2]

void Wt::WStandardItemModel::appendRow ( std::unique_ptr< WStandardItem item)

Appends a single row containing a single item.

Appends a single toplevel row, with a single item.

Equivalent to:

insertRow(rowCount(), std::move(item));
virtual int rowCount(const WModelIndex &parent=WModelIndex()) const =0
Returns the number of rows.
bool insertRow(int row, const WModelIndex &parent=WModelIndex())
Inserts one row.
Definition: WAbstractItemModel.C:170
See also
WStandardItem::insertRow(int, std::unique_ptr<WStandardItem>)

◆ appendRow() [2/2]

void Wt::WStandardItemModel::appendRow ( std::vector< std::unique_ptr< WStandardItem > >  items)

Adds a single row of top level items.

Appends a single row of top level items. If necessary, the column count is increased.

Equivalent to:

insertRow(rowCount(), std::move(items));
See also
insertRow(), appendColumn()

◆ clear()

void Wt::WStandardItemModel::clear ( )

Erases all data in the model.

After clearing the model, rowCount() and columnCount() are 0.

◆ copyData()

virtual void Wt::WStandardItemModel::copyData ( const WModelIndex sIndex,
const WModelIndex dIndex 
)
overrideprotectedvirtual

Copy data to an index in this model.

The source index can be any valid index. The destination index must be part of this model.

Reimplemented from Wt::WAbstractItemModel.

◆ indexFromItem()

WModelIndex Wt::WStandardItemModel::indexFromItem ( const WStandardItem item) const

Returns the model index for a particular item.

If the item is the invisibleRootItem(), then an invalid index is returned.

See also
itemFromIndex()

◆ insertColumn() [1/2]

bool Wt::WAbstractItemModel::insertColumn

Inserts one column.

This is a convenience method that adds a single column, and is equivalent to:

insertColumns(column, 1, parent);
virtual bool insertColumns(int column, int count, const WModelIndex &parent=WModelIndex())
Inserts one or more columns.
Definition: WAbstractItemModel.C:109
virtual WModelIndex parent(const WModelIndex &index) const =0
Returns the parent for a model index.

Returns true if the operation was successful.

See also
insertColumns()

◆ insertColumn() [2/2]

void Wt::WStandardItemModel::insertColumn ( int  column,
std::vector< std::unique_ptr< WStandardItem > >  items 
)

Inserts a single column of top level items.

Inserts a single column of top level items at column column. If necessary, the row count is increased.

Equivalent to:

invisibleRootItem()->insertColumn(column, std::move(items));
WStandardItem * invisibleRootItem() const
Returns the invisible root item.
Definition: WStandardItemModel.h:120
void insertColumn(int column, std::vector< std::unique_ptr< WStandardItem > > items)
Inserts a single column of items.
Definition: WStandardItem.C:395
See also
WStandardItem::insertColumn()

◆ insertRow() [1/3]

bool Wt::WAbstractItemModel::insertRow

Inserts one row.

This is a convenience method that adds a single row, and is equivalent to:

insertRows(row, 1, parent);
virtual bool insertRows(int row, int count, const WModelIndex &parent=WModelIndex())
Inserts one or more rows.
Definition: WAbstractItemModel.C:115

Returns true if the operation was successful.

See also
insertRows()

◆ insertRow() [2/3]

void Wt::WStandardItemModel::insertRow ( int  row,
std::unique_ptr< WStandardItem item 
)

Inserts a single row containing a single item.

Inserts a single toplevel row, with a single item.

Equivalent to:

invisibleRootItem()->insertRow(row, std::move(item));
void insertRow(int row, std::vector< std::unique_ptr< WStandardItem > > items)
Inserts a single row of items.
Definition: WStandardItem.C:440
See also
WStandardItem::insertRow(int, std::unique_ptr<WStandardItem>)

◆ insertRow() [3/3]

void Wt::WStandardItemModel::insertRow ( int  row,
std::vector< std::unique_ptr< WStandardItem > >  items 
)

Inserts a single row of top level items.

Inserts a single row of top level items at row row. If necessary, the column count is increased.

Equivalent to:

invisibleRootItem()->insertRow(row, std::move(items));
See also
WStandardItem::insertRow()

◆ invisibleRootItem()

WStandardItem* Wt::WStandardItemModel::invisibleRootItem ( ) const

Returns the invisible root item.

The invisible root item is a special item that is not rendered itself, but holds the top level data.

◆ item()

WStandardItem* Wt::WStandardItemModel::item ( int  row,
int  column = 0 
) const

Returns a toplevel item.

Returns the top level at at (row, column). This may be 0 if no item was set previously at that position, or if the indicated position is out of bounds.

Equivalent to:

invisibleRootItem()->child(row, column);
WStandardItem * child(int row, int column=0) const
Returns a child item.
Definition: WStandardItem.C:610
See also
WStandardItem::child()

◆ itemChanged()

Signal<WStandardItem *>& Wt::WStandardItemModel::itemChanged ( )

Signal emitted when an item is changed.

This signal is emitted whenever data for an item has changed. The item that has changed is passed as the first parameter.

See also
WStandardItem::setData()

◆ itemFromIndex()

WStandardItem* Wt::WStandardItemModel::itemFromIndex ( const WModelIndex index) const

Returns the standard item that corresponds to a model index.

If the index is an invalid index, then the invisibleRootItem() is returned.

See also
indexFromItem()

◆ itemPrototype()

WStandardItem* Wt::WStandardItemModel::itemPrototype ( ) const

Returns the item prototype.

See also
setItemPrototype()

◆ setHeaderFlags()

void Wt::WStandardItemModel::setHeaderFlags ( int  section,
Orientation  orientation,
WFlags< HeaderFlag flags 
)

Sets header flags.

By default, no flags are set.

◆ setItem()

void Wt::WStandardItemModel::setItem ( int  row,
int  column,
std::unique_ptr< WStandardItem item 
)

Sets a toplevel item.

Sets the top level at at (row, column). If necessary, the number of rows or columns is increased.

If an item was previously set for that position, it is deleted first.

Equivalent to:

invisibleRootItem()->setChild(row, column, std::move(item));
void setChild(int row, int column, std::unique_ptr< WStandardItem > item)
Sets a child item.
Definition: WStandardItem.C:549
See also
WStandardItem::setChild(int, int, std::unique_ptr<WStandardItem>)

◆ setItemPrototype()

void Wt::WStandardItemModel::setItemPrototype ( std::unique_ptr< WStandardItem item)

Sets the item prototype.

Set the item that is cloned when an item needs to be created because the model is manipulated through its WAbstractItemModel API. For example, this may be needed when a view sets data at a position for which no item was previously set and thus created.

The new item is created based on this prototype by using WStandardItem::clone().

The default prototype is WStandardItem().

See also
setItemPrototype()

◆ setSortRole()

void Wt::WStandardItemModel::setSortRole ( ItemDataRole  role)

Set the role used to sort the model.

The default role is ItemDataRole::Display.

See also
sort().

◆ sort()

virtual void Wt::WStandardItemModel::sort ( int  column,
SortOrder  order = SortOrder::Ascending 
)
overridevirtual

Sorts the model according to a particular column.

If the model supports sorting, then it should emit the layoutAboutToBeChanged() signal, rearrange its items, and afterwards emit the layoutChanged() signal.

See also
layoutAboutToBeChanged(), layoutChanged()

Reimplemented from Wt::WAbstractItemModel.

◆ sortRole()

ItemDataRole Wt::WStandardItemModel::sortRole ( ) const

Returns the role used to sort the model.

See also
setSortRole()

◆ takeColumn()

std::vector<std::unique_ptr<WStandardItem> > Wt::WStandardItemModel::takeColumn ( int  column)

Takes a column out of the model.

Removes a column from the model, and returns the items that it contained.

Equivalent to:

std::vector< std::unique_ptr< WStandardItem > > takeColumn(int column)
Takes a column of children out of the item.
Definition: WStandardItem.C:642
See also
WStandardItem::takeColumn(), WStandardItem::takeRow()

◆ takeItem()

std::unique_ptr<WStandardItem> Wt::WStandardItemModel::takeItem ( int  row,
int  column = 0 
)

Takes an item out of the model.

Removes an item from the model, and returns it.

Equivalent to:

invisibleRootItem()->takeItem(row, column);
See also
takeItem(), WStandardItem::takeRow(), WStandardItem::takeColumn()

◆ takeRow()

std::vector<std::unique_ptr<WStandardItem> > Wt::WStandardItemModel::takeRow ( int  row)

Takes a row out of the model.

Removes a row from the model, and returns the items that it contained.

Equivalent to:

std::vector< std::unique_ptr< WStandardItem > > takeRow(int row)
Takes a row of children out of the item.
Definition: WStandardItem.C:666
See also
WStandardItem::takeRow(), takeColumn()