Code-formatting, add (unused for now) overload of getLocationPosition()
This commit is contained in:
parent
00fa7bff1c
commit
8b76b861ad
@ -48,14 +48,17 @@ class TimeZoneWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit TimeZoneWidget(QWidget* parent = 0);
|
||||
explicit TimeZoneWidget( QWidget* parent = 0 );
|
||||
|
||||
LocaleGlobal::Location getCurrentLocation() { return currentLocation; }
|
||||
void setCurrentLocation(QString region, QString zone);
|
||||
void setCurrentLocation(LocaleGlobal::Location location);
|
||||
LocaleGlobal::Location getCurrentLocation()
|
||||
{
|
||||
return currentLocation;
|
||||
}
|
||||
void setCurrentLocation( QString region, QString zone );
|
||||
void setCurrentLocation( LocaleGlobal::Location location );
|
||||
|
||||
signals:
|
||||
void locationChanged(LocaleGlobal::Location location);
|
||||
void locationChanged( LocaleGlobal::Location location );
|
||||
|
||||
private:
|
||||
QFont font;
|
||||
@ -63,10 +66,14 @@ private:
|
||||
QList<QImage> timeZoneImages;
|
||||
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 mousePressEvent(QMouseEvent* event);
|
||||
void paintEvent( QPaintEvent* event );
|
||||
void mousePressEvent( QMouseEvent* event );
|
||||
};
|
||||
|
||||
#endif // TIMEZONEWIDGET_H
|
||||
|
Loading…
Reference in New Issue
Block a user