Remove QDateTimeEditPrivate's duplication of QDateTimeParser code.

Both constructors set up the first, last and none members.
QDateTimeEditPrivate wants first.pos = 0, different to its base, so
keep that, but the rest merely duplicated.

Change-Id: Ice22e0495112dc3427eb35b5b73420f42d7dafc1
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Edward Welbourne 2016-01-27 14:31:37 +01:00
parent 2996560bf8
commit 4ac0686a6b

View File

@ -1668,12 +1668,7 @@ QDateTimeEditPrivate::QDateTimeEditPrivate()
cachedDay = -1;
currentSectionIndex = FirstSectionIndex;
first.type = FirstSection;
last.type = LastSection;
none.type = NoSection;
first.pos = 0;
last.pos = -1;
none.pos = -1;
sections = 0;
calendarPopup = false;
minimum = QDATETIMEEDIT_COMPAT_DATETIME_MIN;