mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move renderSVGIcon() to qthelper.cpp
The renderIcon() function was used by the thumbnailer to render SVG-based icons. Move it to the global qthelper.cpp so that it can also be used by the statistics module. Add "SVG" to the name to emphasize what it is used for. For consistency also move the renderSVGIconWidth() function, which renders to a fixed width, to qthelper.cpp Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4ca40bc152
commit
1d93926700
3 changed files with 33 additions and 28 deletions
|
|
@ -21,6 +21,7 @@ enum watertypes {FRESHWATER, BRACKISHWATER, EN13319WATER, SALTWATER, DC_WATERTYP
|
|||
|
||||
#include <QString>
|
||||
#include "core/gettextfromc.h"
|
||||
class QImage;
|
||||
|
||||
QString weight_string(int weight_in_grams);
|
||||
QString distance_string(int distanceInMeters);
|
||||
|
|
@ -86,6 +87,8 @@ QString getUserAgent();
|
|||
QString printGPSCoords(const location_t *loc);
|
||||
std::vector<int> get_cylinder_map_for_remove(int count, int n);
|
||||
std::vector<int> get_cylinder_map_for_add(int count, int n);
|
||||
QImage renderSVGIcon(const char *id, int size);
|
||||
QImage renderSVGIconWidth(const char *id, int size);
|
||||
|
||||
extern QString (*changesCallback)();
|
||||
void uiNotification(const QString &msg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue