![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <citydlg.h>
Inheritance diagram for city_label:
Collaboration diagram for city_label:Public Member Functions | |
| city_label (QWidget *parent=0) | |
| city_label is used only for showing citizens icons and was created only to catch mouse events More... | |
| void | set_city (struct city *pcity) |
| Just sets target city for city_label. More... | |
| void | set_type (int) |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *event) override |
| Mouse handler for city_label. More... | |
| QSize | minimumSizeHint () const override |
| QSize | sizeHint () const override |
Private Member Functions | |
| QSize | get_pixmap_size () const |
Private Attributes | |
| struct city * | pcity {nullptr} |
| int | type |
| city_label::city_label | ( | QWidget * | parent = 0 | ) |
city_label is used only for showing citizens icons and was created only to catch mouse events
Definition at line 572 of file citydlg.cpp.
|
private |
Definition at line 620 of file citydlg.cpp.
Referenced by minimumSizeHint(), and sizeHint().
|
overrideprotected |
Definition at line 630 of file citydlg.cpp.
|
overrideprotected |
Mouse handler for city_label.
Definition at line 581 of file citydlg.cpp.
| void city_label::set_city | ( | struct city * | pcity | ) |
Just sets target city for city_label.
Definition at line 637 of file citydlg.cpp.
Referenced by city_dialog::update_citizens().
| void city_label::set_type | ( | int | x | ) |
Definition at line 577 of file citydlg.cpp.
Referenced by city_dialog::city_dialog().
|
overrideprotected |
Definition at line 632 of file citydlg.cpp.
|
private |
Definition at line 255 of file citydlg.h.
Referenced by mousePressEvent(), and set_city().
|
private |
Definition at line 256 of file citydlg.h.
Referenced by city_label(), and set_type().