mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[locale] Reduce API surface
- getLocationPosition doesn't need to be a method, since it calls out to a static function of TimeZoneImageList anyway.
This commit is contained in:
parent
25ba1bb767
commit
931ce20f30
2 changed files with 7 additions and 5 deletions
|
@ -34,6 +34,13 @@
|
|||
#define ZONE_NAME QStringLiteral( "zone" )
|
||||
#endif
|
||||
|
||||
static QPoint
|
||||
getLocationPosition( const CalamaresUtils::Locale::TZZone* l )
|
||||
{
|
||||
return TimeZoneImageList::getLocationPosition( l->longitude(), l->latitude() );
|
||||
}
|
||||
|
||||
|
||||
TimeZoneWidget::TimeZoneWidget( QWidget* parent )
|
||||
: QWidget( parent )
|
||||
, timeZoneImages( TimeZoneImageList::fromQRC() )
|
||||
|
|
|
@ -53,11 +53,6 @@ private:
|
|||
TimeZoneImageList timeZoneImages;
|
||||
const TZZone* m_currentLocation = nullptr; // Not owned by me
|
||||
|
||||
QPoint getLocationPosition( const TZZone* l )
|
||||
{
|
||||
return timeZoneImages.getLocationPosition( l->longitude(), l->latitude() );
|
||||
}
|
||||
|
||||
void paintEvent( QPaintEvent* event );
|
||||
void mousePressEvent( QMouseEvent* event );
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue