Stellarium  1.2
Signals | Public Member Functions | Protected Member Functions
MapWidget Class Reference

#include <MapWidget.hpp>

Signals

void positionChanged (double longitude, double latitude)
 Signal emitted when we click on the map.
 

Public Member Functions

 MapWidget (QWidget *parent=nullptr)
 
void setMarkerPos (double longitude, double latitude)
 Set the current marker position. More...
 
void setMap (const QPixmap &map)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 

Detailed Description

Special widget that shows a world map

Member Function Documentation

◆ setMarkerPos()

void MapWidget::setMarkerPos ( double  longitude,
double  latitude 
)
Parameters
longitudelongitude in degree in range [-180;180[
latitudelatitude in degree in range [-90;90]