![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <icons.h>
Collaboration diagram for fcIcons:Public Member Functions | |
| QIcon | getIcon (const QString &id) |
| Returns icon by given name. More... | |
| QPixmap * | getPixmap (const QString &id) |
| Returns pixmap by given name, pixmap needs to be deleted by someone else. More... | |
| QString | getPath (const QString &id) |
| Returns path for icon. More... | |
Static Public Member Functions | |
| static fcIcons * | instance () |
| Returns instance of fc_icons. More... | |
| static void | drop () |
| Deletes fc_icons instance. More... | |
Private Member Functions | |
| Q_DISABLE_COPY (fcIcons) | |
| fcIcons () | |
| Icon provider constructor. More... | |
Static Private Attributes | |
| static fcIcons * | m_instance = nullptr |
|
explicitprivatedefault |
Icon provider constructor.
Referenced by instance().
| QIcon fcIcons::getIcon | ( | const QString & | id | ) |
Returns icon by given name.
Definition at line 125 of file icons.cpp.
Referenced by chat_widget::chat_widget(), move_widget::move_widget(), pageGame::pageGame(), and page_pregame::update_start_page().
| QString fcIcons::getPath | ( | const QString & | id | ) |
| QPixmap * fcIcons::getPixmap | ( | const QString & | id | ) |
Returns pixmap by given name, pixmap needs to be deleted by someone else.
Definition at line 166 of file icons.cpp.
Referenced by close_widget::close_widget(), qfc_dialog::qfc_dialog(), and scale_widget::scale_widget().
|
static |
Returns instance of fc_icons.
Definition at line 36 of file icons.cpp.
Referenced by chat_widget::chat_widget(), city_dialog::city_dialog(), close_widget::close_widget(), hIcon::createIcons(), fc_client::current_page(), fc_corner::fc_corner(), minimap_panel::minimap_panel(), move_widget::move_widget(), notify_goto::notify_goto(), page_pregame::page_pregame(), pageGame::pageGame(), pregame_options::pregame_options(), qfc_dialog::qfc_dialog(), pageGame::reloadSidebarIcons(), diplo_wdg::restore_pixmap(), scale_widget::scale_widget(), science_report::science_report(), chat_widget::set_chat_visible(), choice_dialog::set_layout(), unit_actions::update_actions(), pregame_options::update_buttons(), and page_pregame::update_start_page().
|
private |
|
staticprivate |
Definition at line 22 of file icons.h.
Referenced by drop(), and instance().