Freeciv-3.2
Loading...
Searching...
No Matches
Public Member Functions
plr_item_delegate Class Reference

#include <plrdlg.h>

+ Inheritance diagram for plr_item_delegate:

Public Member Functions

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

Detailed Description

Definition at line 52 of file plrdlg.h.

Constructor & Destructor Documentation

◆ plr_item_delegate()

plr_item_delegate::plr_item_delegate ( QObject *  parent)
inline

Definition at line 56 of file plrdlg.h.

◆ ~plr_item_delegate()

plr_item_delegate::~plr_item_delegate ( )
inline

Definition at line 57 of file plrdlg.h.

Member Function Documentation

◆ paint()

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

Paint event for custom player item delegation

Definition at line 69 of file plrdlg.cpp.

◆ sizeHint()

QSize plr_item_delegate::sizeHint ( const QStyleOptionViewItem option,
const QModelIndex index 
) const
virtual

Slighty increase default cell height

Definition at line 55 of file plrdlg.cpp.