QDateEdit Locale Fix

This commit is contained in:
Mark Watkins 2011-07-20 00:04:54 +10:00
parent b4c324ef98
commit 563734ae26
2 changed files with 11 additions and 8 deletions

View File

@ -6,6 +6,8 @@
#include <QCalendarWidget> #include <QCalendarWidget>
#include <QTextCharFormat> #include <QTextCharFormat>
#include <QSystemLocale>
#include <QDebug>
#include "overview.h" #include "overview.h"
#include "ui_overview.h" #include "ui_overview.h"
#include "Graphs/graphdata_custom.h" #include "Graphs/graphdata_custom.h"
@ -22,7 +24,6 @@ Overview::Overview(QWidget *parent,QGLContext *context) :
{ {
ui->setupUi(this); ui->setupUi(this);
shared_context=context; shared_context=context;
profile=Profiles::Get(pref["Profile"].toString()); profile=Profiles::Get(pref["Profile"].toString());
AddData(ahidata=new HistoryData(profile)); AddData(ahidata=new HistoryData(profile));
AddData(pressure=new HistoryCodeData(profile,CPAP_PressureAverage)); AddData(pressure=new HistoryCodeData(profile,CPAP_PressureAverage));

View File

@ -10,6 +10,11 @@
<height>355</height> <height>355</height>
</rect> </rect>
</property> </property>
<property name="font">
<font>
<family>Sans Serif</family>
</font>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
@ -90,7 +95,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>800</width> <width>800</width>
<height>276</height> <height>282</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_4"> <layout class="QVBoxLayout" name="verticalLayout_4">
@ -179,6 +184,9 @@
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="leftMargin">
<number>4</number>
</property>
<item> <item>
<widget class="QLabel" name="drStartLabel"> <widget class="QLabel" name="drStartLabel">
<property name="enabled"> <property name="enabled">
@ -197,9 +205,6 @@
<property name="locale"> <property name="locale">
<locale language="C" country="AnyCountry"/> <locale language="C" country="AnyCountry"/>
</property> </property>
<property name="displayFormat">
<string>dd/MM/yyyy</string>
</property>
<property name="calendarPopup"> <property name="calendarPopup">
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -223,9 +228,6 @@
<property name="locale"> <property name="locale">
<locale language="C" country="AnyCountry"/> <locale language="C" country="AnyCountry"/>
</property> </property>
<property name="displayFormat">
<string>dd/MM/yyyy</string>
</property>
<property name="calendarPopup"> <property name="calendarPopup">
<bool>true</bool> <bool>true</bool>
</property> </property>