Stellarium 0.15.2
List of all members | Signals | Public Member Functions | Protected Member Functions
MapLabel Class Reference

Special QLabel that shows a world map. More...

#include <MapLabel.hpp>

+ Inheritance diagram for MapLabel:
+ Collaboration diagram for MapLabel:

Signals

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

Public Member Functions

 MapLabel (QWidget *parent=0)
 
void setCursorPos (double longitude, double latitude)
 Set the current cursor position. More...
 

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event)
 

Detailed Description

Special QLabel that shows a world map.

Definition at line 28 of file MapLabel.hpp.

Member Function Documentation

void MapLabel::positionChanged ( double  longitude,
double  latitude 
)
signal

Signal emitted when we click on the map.

void MapLabel::setCursorPos ( double  longitude,
double  latitude 
)

Set the current cursor position.

Parameters
longitudelongitude in degree in range [-180;180[
latitudelatitude in degree in range [-90;90]

The documentation for this class was generated from the following file: