Code-formatting, add (unused for now) overload of getLocationPosition()

main
Adriaan de Groot 8 years ago
parent 00fa7bff1c
commit 8b76b861ad

@ -48,14 +48,17 @@ class TimeZoneWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TimeZoneWidget(QWidget* parent = 0); explicit TimeZoneWidget( QWidget* parent = 0 );
LocaleGlobal::Location getCurrentLocation() { return currentLocation; } LocaleGlobal::Location getCurrentLocation()
void setCurrentLocation(QString region, QString zone); {
void setCurrentLocation(LocaleGlobal::Location location); return currentLocation;
}
void setCurrentLocation( QString region, QString zone );
void setCurrentLocation( LocaleGlobal::Location location );
signals: signals:
void locationChanged(LocaleGlobal::Location location); void locationChanged( LocaleGlobal::Location location );
private: private:
QFont font; QFont font;
@ -63,10 +66,14 @@ private:
QList<QImage> timeZoneImages; QList<QImage> timeZoneImages;
LocaleGlobal::Location currentLocation; LocaleGlobal::Location currentLocation;
QPoint getLocationPosition(double longitude, double latitude); QPoint getLocationPosition( const LocaleGlobal::Location& l )
{
return getLocationPosition( l.longitude, l.latitude );
}
QPoint getLocationPosition( double longitude, double latitude );
void paintEvent(QPaintEvent* event); void paintEvent( QPaintEvent* event );
void mousePressEvent(QMouseEvent* event); void mousePressEvent( QMouseEvent* event );
}; };
#endif // TIMEZONEWIDGET_H #endif // TIMEZONEWIDGET_H

Loading…
Cancel
Save