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

#include <citydlg.h>

+ Inheritance diagram for city_production_delegate:

Public Member Functions

 city_production_delegate (QPoint sh, QObject *parent, struct city *city)
 
 ~city_production_delegate ()
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 

Protected Member Functions

void drawFocus (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect) const
 

Private Attributes

int item_height
 
QPoint pd
 
struct citypcity
 

Detailed Description

Definition at line 304 of file citydlg.h.

Constructor & Destructor Documentation

◆ city_production_delegate()

city_production_delegate::city_production_delegate ( QPoint  sh,
QObject *  parent,
struct city city 
)

City item delegate constructor

Definition at line 4164 of file citydlg.cpp.

◆ ~city_production_delegate()

city_production_delegate::~city_production_delegate ( )
inline

Definition at line 310 of file citydlg.h.

Member Function Documentation

◆ drawFocus()

void city_production_delegate::drawFocus ( QPainter painter,
const QStyleOptionViewItem option,
const QRect rect 
) const
protected

Draws focus for given item

Definition at line 4316 of file citydlg.cpp.

Referenced by paint().

◆ paint()

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

City item delgate paint event

Definition at line 4177 of file citydlg.cpp.

◆ sizeHint()

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

Size hint for city item delegate

Definition at line 4333 of file citydlg.cpp.

Field Documentation

◆ item_height

int city_production_delegate::item_height
private

Definition at line 317 of file citydlg.h.

Referenced by city_production_delegate(), and paint().

◆ pcity

struct city* city_production_delegate::pcity
private

Definition at line 319 of file citydlg.h.

Referenced by city_production_delegate(), and paint().

◆ pd

QPoint city_production_delegate::pd
private

Definition at line 318 of file citydlg.h.

Referenced by city_production_delegate(), and sizeHint().