Freeciv-3.2: impr_info Class Reference

Freeciv-3.2

Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Protected Member Functions
impr_info Class Reference

`#include <citydlg.h>`

Inheritance diagram for impr_info:

## Public Member Functions

| impr_info (QWidget *parent)
| ~impr_info ()
void | add_item (impr_item *item)
void | init_layout ()
void | update_buildings ()
void | clear_layout ()

## Data Fields

QHBoxLayout * | layout
QList< impr_item * > | impr_list

## Protected Member Functions

void | wheelEvent (QWheelEvent *event)

## Detailed Description

Definition at line 250 of file citydlg.h.

## Constructor & Destructor Documentation

## ◆ impr_info()

impr_info::impr_info | ( | QWidget * | parent | ) |

Improvement list constructor

Definition at line 471 of file citydlg.cpp.

## ◆ ~impr_info()

impr_info::~impr_info | ( |  | ) |

Improvement list destructor

Definition at line 494 of file citydlg.cpp.

## Member Function Documentation

## ◆ add_item()

void impr_info::add_item | ( | impr_item * | item | ) |

Adds improvement item to list

Definition at line 502 of file citydlg.cpp.

Referenced by city_dialog::update_improvements().

## ◆ clear_layout()

void impr_info::clear_layout | ( |  | ) |

Clears layout on improvement list

Definition at line 510 of file citydlg.cpp.

Referenced by city_dialog::update_improvements().

## ◆ init_layout()

void impr_info::init_layout | ( |  | ) |

Inits improvement list constructor

Definition at line 481 of file citydlg.cpp.

Referenced by impr_info().

## ◆ update_buildings()

void impr_info::update_buildings | ( |  | ) |

Updates list of improvements

Definition at line 560 of file citydlg.cpp.

Referenced by city_dialog::update_improvements().

## ◆ wheelEvent()

void impr_info::wheelEvent | ( | QWheelEvent * | event | ) |

protected

Mouse wheel event - send it to scrollbar

Definition at line 535 of file citydlg.cpp.

## Field Documentation

## ◆ impr_list

QList<impr_item *> impr_info::impr_list

Definition at line 261 of file citydlg.h.

Referenced by add_item(), clear_layout(), and update_buildings().

## ◆ layout

QHBoxLayout* impr_info::layout

Definition at line 260 of file citydlg.h.

Referenced by clear_layout(), impr_info(), init_layout(), and update_buildings().