![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <QAbstractItemView>#include <QHelpEvent>#include <QModelIndex>#include <QToolTip>#include "fcintl.h"#include "support.h"#include "helpdata.h"#include "client_main.h"#include "climisc.h"#include "fc_client.h"#include "movement.h"#include "tooltips.h"
Include dependency graph for tooltips.cpp:Go to the source code of this file.
Functions | |
| QString | split_text (const QString &text, bool cut) |
| Splits long text to 80 characters. More... | |
| QString | cut_helptext (const QString &text) |
| Remove some text from given text(help text) to show as tooltip. More... | |
| QString | bold (const QString &text) |
| 'text' is assumed to have already been HTML-escaped if necessary More... | |
| QString | get_tooltip_improvement (const impr_type *building, struct city *pcity, bool ext) |
| Returns improvement properties to append in tooltip ext is used to get extra info from help. More... | |
| QString | get_tooltip_unit (const struct unit_type *utype, bool ext) |
| Returns unit properties to append in tooltip ext is used to get extra info from help. More... | |
| QString | get_tooltip (const QVariant &qvar) |
| Returns shortened help for given universal ( stored in qvar ) More... | |
| QString bold | ( | const QString & | text | ) |
'text' is assumed to have already been HTML-escaped if necessary
Definition at line 76 of file tooltips.cpp.
Referenced by configure_font(), and get_tooltip_unit().
| QString cut_helptext | ( | const QString & | text | ) |
Remove some text from given text(help text) to show as tooltip.
Definition at line 87 of file optiondlg.cpp.
Referenced by get_tooltip(), get_tooltip_improvement(), and get_tooltip_unit().
| QString get_tooltip | ( | const QVariant & | qvar | ) |
Returns shortened help for given universal ( stored in qvar )
Definition at line 215 of file tooltips.cpp.
Referenced by city_production_model::data().
Returns improvement properties to append in tooltip ext is used to get extra info from help.
Definition at line 82 of file tooltips.cpp.
Referenced by get_tooltip(), freeciv::upkeep_widget::refresh(), and city_dialog::update_improvements().
| QString get_tooltip_unit | ( | const struct unit_type * | utype, |
| bool | ext | ||
| ) |
Returns unit properties to append in tooltip ext is used to get extra info from help.
Definition at line 144 of file tooltips.cpp.
Referenced by get_tooltip(), and city_dialog::update_improvements().
| QString split_text | ( | const QString & | text, |
| bool | cut | ||
| ) |
Splits long text to 80 characters.
Definition at line 45 of file optiondlg.cpp.
Referenced by get_tooltip(), get_tooltip_improvement(), and get_tooltip_unit().