Freeciv-3.2: city_label Class Reference

Freeciv-3.2

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes
city_label Class Reference

`#include <citydlg.h>`

Inheritance diagram for city_label:

## Public Member Functions

| city_label (int type, QWidget *parent=0)
void | set_city (struct city *pcity)

## Protected Member Functions

void | mousePressEvent (QMouseEvent *event)

## Private Attributes

struct city * | pcity
int | type

## Detailed Description

Definition at line 417 of file citydlg.h.

## Constructor & Destructor Documentation

## ◆ city_label()

city_label::city_label | ( | int | t,
|  | QWidget * | parent = `0`
| ) |  |

city_label is used only for showing citizens icons and was created only to catch mouse events

Definition at line 1186 of file citydlg.cpp.

## Member Function Documentation

## ◆ mousePressEvent()

void city_label::mousePressEvent | ( | QMouseEvent * | event | ) |

protected

Mouse handler for city_label

Definition at line 1194 of file citydlg.cpp.

## ◆ set_city()

void city_label::set_city | ( | struct city * | pcity | ) |

Just sets target city for city_label

Definition at line 1218 of file citydlg.cpp.

Referenced by city_dialog::update_citizens().

## Field Documentation

## ◆ pcity

struct city* city_label::pcity

private

Definition at line 426 of file citydlg.h.

Referenced by mousePressEvent(), and set_city().

## ◆ type

int city_label::type

private

Definition at line 427 of file citydlg.h.

Referenced by city_label().