From: Jason Harris Date: Mon, 17 May 2004 03:14:25 +0000 (+0000) Subject: Remove QDate restriction on ExtDateTimeEdit. Can now set date between years X-Git-Tag: v3.3.0~5 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=c56eafd72d2b5010c84209dff58d196578c497a9;p=libqmvoc.git Remove QDate restriction on ExtDateTimeEdit. Can now set date between years -50000 and 50000. (changes in extdatetime.cpp are just whitespace changes) CCMAIL: kstars-devel@kde.org svn path=/trunk/kdeedu/libkdeedu/; revision=311960 --- diff --git a/extdate/extdatetime.cpp b/extdate/extdatetime.cpp index b5e1848..686fd3b 100644 --- a/extdate/extdatetime.cpp +++ b/extdate/extdatetime.cpp @@ -21,11 +21,11 @@ #include #include -static const uint SECS_PER_DAY = 86400; +static const uint SECS_PER_DAY = 86400; static const uint MSECS_PER_DAY = 86400000; static const uint SECS_PER_HOUR = 3600; static const uint MSECS_PER_HOUR= 3600000; -static const uint SECS_PER_MIN = 60; +static const uint SECS_PER_MIN = 60; static const uint MSECS_PER_MIN = 60000; /***************************************************************************** diff --git a/extdate/extdatetimeedit.cpp b/extdate/extdatetimeedit.cpp index f003936..c4bebc3 100644 --- a/extdate/extdatetimeedit.cpp +++ b/extdate/extdatetimeedit.cpp @@ -878,8 +878,8 @@ void ExtDateEdit::init() d->adv = FALSE; d->timerId = 0; d->typing = FALSE; - d->min = ExtDate( 1752, 9, 14 ); - d->max = ExtDate( 8000, 12, 31 ); + d->min = ExtDate( -50000, 1, 1 ); + d->max = ExtDate( 50000, 12, 31 ); d->changed = FALSE; setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Fixed );