Stellarium  HEAD
Signals | Public Member Functions | Protected Member Functions
MapLabel Class Reference

Special QLabel that shows a world map.

#include <MapLabel.hpp>


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

Public Member Functions

 MapLabel (QWidget *parent=Q_NULLPTR)
void setCursorPos (double longitude, double latitude)
 Set the current cursor position. More...
void setPixmap (const QPixmap &pixmap)
void resizePixmap ()

Protected Member Functions

void mousePressEvent (QMouseEvent *event) Q_DECL_OVERRIDE
void resizeEvent (QResizeEvent *event) Q_DECL_OVERRIDE

Member Function Documentation

◆ setCursorPos()

void MapLabel::setCursorPos ( double  longitude,
double  latitude 
longitudelongitude in degree in range [-180;180[
latitudelatitude in degree in range [-90;90]