mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
More preference handling fixes
Remove a few uneeded lines and add more loading code for the preferences. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
27d1385c65
commit
c110b4a238
3 changed files with 2 additions and 4 deletions
|
@ -2296,6 +2296,8 @@ void SettingsObjectWrapper::load()
|
||||||
GET_TXT("time_format", time_format);
|
GET_TXT("time_format", time_format);
|
||||||
GET_TXT("date_format", date_format);
|
GET_TXT("date_format", date_format);
|
||||||
GET_TXT("date_format_short", date_format_short);
|
GET_TXT("date_format_short", date_format_short);
|
||||||
|
GET_BOOL("time_format_override", time_format_override);
|
||||||
|
GET_BOOL("date_format_override", date_format_override);
|
||||||
s.endGroup();
|
s.endGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -380,8 +380,6 @@ void WebServices::resetState()
|
||||||
|
|
||||||
SubsurfaceWebServices::SubsurfaceWebServices(QWidget *parent, Qt::WindowFlags f) : WebServices(parent, f)
|
SubsurfaceWebServices::SubsurfaceWebServices(QWidget *parent, Qt::WindowFlags f) : WebServices(parent, f)
|
||||||
{
|
{
|
||||||
QSettings s;
|
|
||||||
|
|
||||||
// figure out if we know (or can determine) the user's web service userid
|
// figure out if we know (or can determine) the user's web service userid
|
||||||
QString userid(prefs.userid);
|
QString userid(prefs.userid);
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
#include "libdivecomputer/parser.h"
|
#include "libdivecomputer/parser.h"
|
||||||
#include "profile-widget/profilewidget2.h"
|
#include "profile-widget/profilewidget2.h"
|
||||||
|
|
||||||
#include <QSettings>
|
|
||||||
|
|
||||||
AbstractProfilePolygonItem::AbstractProfilePolygonItem() : QObject(), QGraphicsPolygonItem(), hAxis(NULL), vAxis(NULL), dataModel(NULL), hDataColumn(-1), vDataColumn(-1)
|
AbstractProfilePolygonItem::AbstractProfilePolygonItem() : QObject(), QGraphicsPolygonItem(), hAxis(NULL), vAxis(NULL), dataModel(NULL), hDataColumn(-1), vDataColumn(-1)
|
||||||
{
|
{
|
||||||
setCacheMode(DeviceCoordinateCache);
|
setCacheMode(DeviceCoordinateCache);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue