26#include <QAbstractListModel>
27#include <QItemDelegate>
28#include <QSortFilterProxyModel>
58 void paint(QPainter *painter,
const QStyleOptionViewItem &
option,
59 const QModelIndex &index)
const;
61 const QModelIndex & index )
const;
73 QVariant
data(
int column,
int role = Qt::DisplayRole)
const;
74 bool setData(
int column,
const QVariant &value,
int role = Qt::DisplayRole);
88 inline int rowCount(
const QModelIndex &index = QModelIndex())
const {
92 int columnCount(
const QModelIndex &parent = QModelIndex())
const {
96 QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
97 bool setData(
const QModelIndex &index,
const QVariant &value,
98 int role = Qt::DisplayRole);
121 bool lessThan(
const QModelIndex &left,
122 const QModelIndex &right)
const;
151 void nation_selected(
const QItemSelection &sl,
const QItemSelection &ds);
plr_item_delegate(QObject *parent)
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
bool setData(int column, const QVariant &value, int role=Qt::DisplayRole)
QVariant data(int column, int role=Qt::DisplayRole) const
int rowCount(const QModelIndex &index=QModelIndex()) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::DisplayRole)
QVariant hide_data(int section) const
QList< plr_item * > plr_list
void notify_plr_changed(int row)
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
void req_caancel_threaty()
void update_report(bool update_selection=true)
struct player * other_player
QPushButton * toggle_ai_but
void show_wonders_toggle()
void show_relations_toggle()
QPushButton * withdraw_but
QPushButton * show_relations
void req_wiithdrw_vision()
QPushButton * show_wonders
bool lessThan(const QModelIndex &left, const QModelIndex &right) const
void popup_players_dialog(bool raise)
void popdown_players_report(void)
struct player_slot * slots
const int num_player_dlg_columns