Freeciv-3.3
|
#include <cityrep.h>
Public Member Functions | |
city_item (struct city *pcity) | |
int | columnCount () const |
QVariant | data (int column, int role=Qt::DisplayRole) const |
bool | setData (int column, const QVariant &value, int role=Qt::DisplayRole) |
struct city * | get_city () |
Private Attributes | |
struct city * | i_city |
Constructor for city item
Definition at line 121 of file cityrep.cpp.
Returns data from city item (or city pointer from Qt::UserRole)
Definition at line 145 of file cityrep.cpp.
city * city_item::get_city | ( | ) |
Returns used city pointer for city item creation
Definition at line 129 of file cityrep.cpp.
Sets nothing, but must be declared
Definition at line 137 of file cityrep.cpp.
Definition at line 96 of file cityrep.h.
Referenced by city_item(), data(), and get_city().