List model for manipulating the passed script manager.
More...
#include <FollowersListModel.h>
|
| FollowersListModel (UnitConversionServerEx *ucs, QObject *parent=nullptr) |
| Constructor.
|
|
void | refresh () |
| Called to refresh the attached viewer.
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| Overridden from base class to provide column display names.
|
|
int | rowCount (const QModelIndex &parent) const override |
| Overridden from base class to provide the amount of rows.
|
|
QVariant | data (const QModelIndex &index, int role) const override |
| Overridden from base class to provide the data to present.
|
|
int | columnCount (const QModelIndex &parent) const override |
| Overridden from base class to provide the amount of columns.
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
| Overridden from base class to provide flags on an item by index.
|
|
bool | remove (QModelIndex index) |
|
bool | edit (QModelIndex index) |
| Edits a entry depending on the validity of the passed index.
|
|
bool | add () |
| Adds a entry depending on the validity of the passed index.
|
|
bool | isDirty () const |
| Gets the modification flag.
|
|
void | sync () |
| Saves changes to the unit server and resets the list's dirty flag.
|
|
List model for manipulating the passed script manager.
◆ FollowersListModel()
◆ add()
bool sf::FollowersListModel::add |
( |
| ) |
|
Adds a entry depending on the validity of the passed index.
◆ columnCount()
int sf::FollowersListModel::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
Overridden from base class to provide the amount of columns.
◆ data()
QVariant sf::FollowersListModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
Overridden from base class to provide the data to present.
◆ edit()
bool sf::FollowersListModel::edit |
( |
QModelIndex |
index | ) |
|
Edits a entry depending on the validity of the passed index.
- Parameters
-
index | Invalid when adding and Valid when editing. |
◆ flags()
Qt::ItemFlags sf::FollowersListModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
Overridden from base class to provide flags on an item by index.
◆ headerData()
QVariant sf::FollowersListModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
Overridden from base class to provide column display names.
◆ isDirty()
bool sf::FollowersListModel::isDirty |
( |
| ) |
const |
|
inline |
Gets the modification flag.
◆ refresh()
void sf::FollowersListModel::refresh |
( |
| ) |
|
Called to refresh the attached viewer.
◆ remove()
bool sf::FollowersListModel::remove |
( |
QModelIndex |
index | ) |
|
◆ rowCount()
int sf::FollowersListModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
Overridden from base class to provide the amount of rows.
◆ sync()
void sf::FollowersListModel::sync |
( |
| ) |
|
Saves changes to the unit server and resets the list's dirty flag.
The documentation for this class was generated from the following file: