add MapItemBase::renderHints

This commit is contained in:
2025-03-20 18:43:42 +03:00
parent 2cb43ab411
commit 26396a4f72
3 changed files with 26 additions and 5 deletions

View File

@@ -4,7 +4,9 @@
#include "osm_math_p.h"
MapItemBase::MapItemBase() {}
MapItemBase::MapItemBase() {
m_hints = QPainter::Antialiasing | QPainter::SmoothPixmapTransform;
}
MapItemBase::~MapItemBase() {
@@ -19,6 +21,18 @@ void MapItemBase::setInteracive(bool newInteracive) {
}
void MapItemBase::setRenderHints(QPainter::RenderHints h) {
m_hints = h;
updateParent();
}
void MapItemBase::setRenderHint(QPainter::RenderHint h, bool on) {
m_hints.setFlag(h, on);
updateParent();
}
void MapItemBase::setVisible(bool newVisible) {
m_visible = newVisible;
updateParent();