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

Special QLabel that shows a world map.

#include <MapLabel.hpp>

Signals

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

virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void resizeEvent (QResizeEvent *event) override
 

Member Function Documentation

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