|
|
|
@ -50,7 +50,10 @@ class TimeZoneWidget : public QWidget
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
explicit TimeZoneWidget( QWidget* parent = 0 );
|
|
|
|
explicit TimeZoneWidget( QWidget* parent = 0 );
|
|
|
|
|
|
|
|
|
|
|
|
LocaleGlobal::Location getCurrentLocation() { return currentLocation; }
|
|
|
|
LocaleGlobal::Location getCurrentLocation()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return currentLocation;
|
|
|
|
|
|
|
|
}
|
|
|
|
void setCurrentLocation( QString region, QString zone );
|
|
|
|
void setCurrentLocation( QString region, QString zone );
|
|
|
|
void setCurrentLocation( LocaleGlobal::Location location );
|
|
|
|
void setCurrentLocation( LocaleGlobal::Location location );
|
|
|
|
|
|
|
|
|
|
|
|
@ -63,6 +66,10 @@ private:
|
|
|
|
QList<QImage> timeZoneImages;
|
|
|
|
QList<QImage> timeZoneImages;
|
|
|
|
LocaleGlobal::Location currentLocation;
|
|
|
|
LocaleGlobal::Location currentLocation;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QPoint getLocationPosition( const LocaleGlobal::Location& l )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return getLocationPosition( l.longitude, l.latitude );
|
|
|
|
|
|
|
|
}
|
|
|
|
QPoint getLocationPosition( double longitude, double latitude );
|
|
|
|
QPoint getLocationPosition( double longitude, double latitude );
|
|
|
|
|
|
|
|
|
|
|
|
void paintEvent( QPaintEvent* event );
|
|
|
|
void paintEvent( QPaintEvent* event );
|
|
|
|
|