#include <citydlg.h>
Definition at line 64 of file citydlg.h.
◆ unit_list_widget()
| unit_list_widget::unit_list_widget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ activate()
| void unit_list_widget::activate |
( |
| ) |
|
|
private |
◆ contextMenuEvent()
| void unit_list_widget::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
overrideprotected |
Reimplemented to provide the unit context menu.
Definition at line 148 of file citydlg.cpp.
◆ create_unit_image()
| QPixmap unit_list_widget::create_unit_image |
( |
const unit * |
punit | ) |
|
|
private |
Creates the image to represent the given unit in the list.
Definition at line 184 of file citydlg.cpp.
Referenced by set_units().
◆ selected_playable_units()
| std::vector< unit * > unit_list_widget::selected_playable_units |
( |
| ) |
const |
◆ set_oneliner()
| void unit_list_widget::set_oneliner |
( |
bool |
oneliner | ) |
|
|
inline |
Sets whether the list should try to use a single line.
Definition at line 72 of file citydlg.h.
◆ set_show_upkeep()
| void unit_list_widget::set_show_upkeep |
( |
bool |
show | ) |
|
|
inline |
Sets whether upkeep needs to be shown.
Definition at line 75 of file citydlg.h.
◆ set_units()
| void unit_list_widget::set_units |
( |
unit_list * |
units | ) |
|
Sets the list of units to be displayed.
Definition at line 101 of file citydlg.cpp.
◆ viewportSizeHint()
| QSize unit_list_widget::viewportSizeHint |
( |
| ) |
const |
|
override |
Reimplemented virtual method.
Definition at line 84 of file citydlg.cpp.
◆ m_oneliner
| bool unit_list_widget::m_oneliner = false |
|
private |
◆ m_show_upkeep
| bool unit_list_widget::m_show_upkeep = false |
|
private |