CMake findQAD miss map
MapItemBase::offset feature PIValueTreeEdit add custom button to show/hide groups
This commit is contained in:
@@ -52,7 +52,9 @@ public:
|
||||
double getZoom() const { return zoom_; }
|
||||
void setZoom(double z);
|
||||
|
||||
private:
|
||||
QPointF clickedCoordinate() const { return last_click_coord; }
|
||||
|
||||
protected:
|
||||
QSize sizeHint() const override { return QSize(200, 200); }
|
||||
void mousePressEvent(QMouseEvent * e) override;
|
||||
void mouseReleaseEvent(QMouseEvent * e) override;
|
||||
@@ -61,6 +63,8 @@ private:
|
||||
void wheelEvent(QWheelEvent * e) override;
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
void resizeEvent(QResizeEvent *) override;
|
||||
|
||||
private:
|
||||
void drawBackground();
|
||||
void drawItems(QPainter & p);
|
||||
void checkZoom();
|
||||
@@ -78,6 +82,7 @@ private:
|
||||
OSMTileCache * cache = nullptr;
|
||||
MapItemBase * hover = nullptr;
|
||||
QPointF center_ = QPointF(0.5, 0.5);
|
||||
QPointF last_click_coord = center_;
|
||||
QPoint press_point;
|
||||
QPixmap background;
|
||||
QRectF view_rect;
|
||||
|
||||
Reference in New Issue
Block a user