Freeciv-3.3
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
city_item_delegate Class Reference

#include <cityrep.h>

+ Inheritance diagram for city_item_delegate:

Public Member Functions

 city_item_delegate (QObject *parent)
 
 ~city_item_delegate ()
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 

Private Attributes

int item_height
 

Detailed Description

Definition at line 69 of file cityrep.h.

Constructor & Destructor Documentation

◆ city_item_delegate()

city_item_delegate::city_item_delegate ( QObject *  parent)

City item delegate constructor

Definition at line 61 of file cityrep.cpp.

◆ ~city_item_delegate()

city_item_delegate::~city_item_delegate ( )
inline

Definition at line 74 of file cityrep.h.

Member Function Documentation

◆ paint()

void city_item_delegate::paint ( QPainter painter,
const QStyleOptionViewItem option,
const QModelIndex index 
) const

City item delgate paint event

Definition at line 73 of file cityrep.cpp.

◆ sizeHint()

QSize city_item_delegate::sizeHint ( const QStyleOptionViewItem option,
const QModelIndex index 
) const

Size hint for city item delegate

Definition at line 109 of file cityrep.cpp.

Field Documentation

◆ item_height

int city_item_delegate::item_height
private

Definition at line 80 of file cityrep.h.

Referenced by city_item_delegate(), and sizeHint().