mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Desktop: Remove 'renderSVGIcon' methods.
Remove `renderSVGIcon()` and `renderSVGIconWidth()`, as QPixmaps can be loaded directly from SVG, and support scaling. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
2ef6cd89cc
commit
7ee5b10810
6 changed files with 15 additions and 37 deletions
|
@ -1,7 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include "divepixmapcache.h"
|
||||
#include "core/metrics.h"
|
||||
#include "core/qthelper.h" // for renderSVGIconWidth
|
||||
#include "core/color.h"
|
||||
|
||||
#include <cmath>
|
||||
|
@ -31,7 +30,7 @@ DivePixmaps::DivePixmaps(int dpr) : dpr(dpr)
|
|||
violation = createPixmap(":status-violation-icon", sz_pix);
|
||||
bailout = createPixmap(":bailout-icon", sz_pix);
|
||||
onCCRLoop = createPixmap(":onCCRLoop-icon", sz_pix);
|
||||
bookmark = QPixmap::fromImage(renderSVGIconWidth(":dive-bookmark-icon", sz_pix));
|
||||
bookmark = createPixmap(":dive-bookmark-icon", sz_pix);
|
||||
gaschangeTrimixICD = createPixmap(":gaschange-trimix-ICD-icon", sz_bigger);
|
||||
gaschangeTrimix = createPixmap(":gaschange-trimix-icon", sz_bigger);
|
||||
gaschangeAirICD = createPixmap(":gaschange-air-ICD-icon", sz_bigger);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue