Freeciv-3.1
|
#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 |
city_item::city_item | ( | struct city * | pcity | ) |
Constructor for city item
Definition at line 121 of file cityrep.cpp.
QVariant city_item::data | ( | int | column, |
int | role = Qt::DisplayRole |
||
) | const |
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.
bool city_item::setData | ( | int | column, |
const QVariant & | value, | ||
int | role = Qt::DisplayRole |
||
) |
Sets nothing, but must be declared
Definition at line 137 of file cityrep.cpp.
|
private |
Definition at line 96 of file cityrep.h.
Referenced by city_item(), data(), and get_city().