diff --git a/src/modules/locale/timezonewidget/localeglobal.cpp b/src/modules/locale/timezonewidget/localeglobal.cpp index 290dab6a2..b7aa603e1 100644 --- a/src/modules/locale/timezonewidget/localeglobal.cpp +++ b/src/modules/locale/timezonewidget/localeglobal.cpp @@ -45,7 +45,7 @@ LocaleGlobal::Location::pretty( const QString& s ) QString -LocaleGlobal::Location::comment() +LocaleGlobal::Location::comment() const { QTimeZone qtz = QTimeZone( QString( "%1/%2" ) .arg( region ) diff --git a/src/modules/locale/timezonewidget/localeglobal.h b/src/modules/locale/timezonewidget/localeglobal.h index b55683006..5bacffc47 100644 --- a/src/modules/locale/timezonewidget/localeglobal.h +++ b/src/modules/locale/timezonewidget/localeglobal.h @@ -46,7 +46,7 @@ public: QString region, zone; double latitude, longitude; static QString pretty( const QString& s ); - QString comment(); + QString comment() const; }; static void init();