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:
parent
2996560bf8
commit
4ac0686a6b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user