Freeciv-3.3
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=nullptr)
 
void set_city (struct city *pcity)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 

Private Attributes

struct citypcity
 
int type
 

Detailed Description

Definition at line 418 of file citydlg.h.

Constructor & Destructor Documentation

◆ city_label()

city_label::city_label ( int  t,
QWidget *  parent = nullptr 
)

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

Definition at line 1163 of file citydlg.cpp.

Member Function Documentation

◆ mousePressEvent()

void city_label::mousePressEvent ( QMouseEvent event)
protected

Mouse handler for city_label

Definition at line 1171 of file citydlg.cpp.

◆ set_city()

void city_label::set_city ( struct city pcity)

Just sets target city for city_label

Definition at line 1195 of file citydlg.cpp.

Referenced by city_dialog::update_citizens().

Field Documentation

◆ pcity

struct city* city_label::pcity
private

Definition at line 427 of file citydlg.h.

Referenced by mousePressEvent(), and set_city().

◆ type

int city_label::type
private

Definition at line 428 of file citydlg.h.

Referenced by city_label().