diff options
author | 2024-05-10 00:04:04 -0400 | |
---|---|---|
committer | 2024-05-10 00:04:04 -0400 | |
commit | 58a7d8c9cf50d4b2a9ae321684ca9d4ce4504260 (patch) | |
tree | 7cc6d38194ce165cf9f8ca0bd13577c2f383fb59 /mapman/src/painter.hpp | |
parent | c2b90e8c89d6477cf52a6b38ca63cb2f15955935 (diff) | |
download | meteor-trashy-addon-58a7d8c9cf50d4b2a9ae321684ca9d4ce4504260.tar.xz |
Disable automatic hidpi scaling on maps. Add zoom option.
Diffstat (limited to 'mapman/src/painter.hpp')
-rw-r--r-- | mapman/src/painter.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mapman/src/painter.hpp b/mapman/src/painter.hpp index f7822a9..a5611ea 100644 --- a/mapman/src/painter.hpp +++ b/mapman/src/painter.hpp @@ -14,11 +14,12 @@ class map_painter : public QObject { Q_OBJECT public: - map_painter(); + map_painter(QWidget *parent = nullptr); ~map_painter(); void set_dimension(int h, int v); void set_map_library(map_library *lib); void set_map_id(int pos, bool populated, int id, bool user_input = false); + void set_scaling(double scale); QGraphicsView* view() { return v; } signals: @@ -29,6 +30,7 @@ private: map_library *l; int hc; int vc; + double slice_dim; std::vector<QGraphicsItem*> slices; std::vector<std::tuple<QGraphicsItem*, QGraphicsItem*>> bgspr; }; |