![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <view_nations.h>
Inheritance diagram for plr_model:
Collaboration diagram for plr_model:Public Member Functions | |
| plr_model (QObject *parent=0) | |
| Constructor for player model. More... | |
| ~plr_model () override | |
| Destructor for player model. More... | |
| int | rowCount (const QModelIndex &index=QModelIndex()) const override |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| Returns data from model. More... | |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::DisplayRole) override |
| Sets data in model. More... | |
| QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| Returns header data from model. More... | |
| QVariant | hide_data (int section) const |
| Returns information about column if hidden. More... | |
| void | populate () |
| Fills model with data. More... | |
Private Slots | |
| void | notify_plr_changed (int row) |
| Notifies that row has been changed. More... | |
Private Attributes | |
| QList< plr_item * > | plr_list |
Definition at line 69 of file view_nations.h.
| plr_model::plr_model | ( | QObject * | parent = 0 | ) |
Constructor for player model.
Definition at line 213 of file view_nations.cpp.
|
override |
Destructor for player model.
Definition at line 221 of file view_nations.cpp.
|
inlineoverride |
Definition at line 81 of file view_nations.h.
Referenced by data(), plr_widget::display_header_menu(), plr_widget::hide_columns(), notify_plr_changed(), and setData().
|
override |
Returns data from model.
Definition at line 230 of file view_nations.cpp.
|
override |
Returns header data from model.
Definition at line 245 of file view_nations.cpp.
Referenced by plr_widget::display_header_menu().
| QVariant plr_model::hide_data | ( | int | section | ) | const |
Returns information about column if hidden.
Definition at line 420 of file view_nations.cpp.
Referenced by plr_widget::hide_columns().
|
privateslot |
Notifies that row has been changed.
Definition at line 282 of file view_nations.cpp.
Referenced by setData().
| void plr_model::populate | ( | ) |
|
inlineoverride |
Definition at line 76 of file view_nations.h.
|
override |
Sets data in model.
Definition at line 261 of file view_nations.cpp.
|
private |
Definition at line 98 of file view_nations.h.
Referenced by data(), populate(), rowCount(), setData(), and ~plr_model().