]> Git trees. - libqmvoc.git/commitdiff
Remove QDate restriction on ExtDateTimeEdit. Can now set date between years
authorJason Harris <kstars@30doradus.org>
Mon, 17 May 2004 03:14:25 +0000 (03:14 +0000)
committerJason Harris <kstars@30doradus.org>
Mon, 17 May 2004 03:14:25 +0000 (03:14 +0000)
-50000 and 50000.  (changes in extdatetime.cpp are just whitespace changes)

CCMAIL: kstars-devel@kde.org

svn path=/trunk/kdeedu/libkdeedu/; revision=311960

extdate/extdatetime.cpp
extdate/extdatetimeedit.cpp

index b5e1848e9670ceff5c2194d8f76b38b1a1f5ea01..686fd3bc6596ef03ce3a04a063b2ebaea6c613d3 100644 (file)
 #include <assert.h>
 #include <time.h>
 
-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;
 
 /*****************************************************************************
index f0039362d7f769b43ea2ff2fff4d549f5f63d026..c4bebc33b2ffc033f1b1dfd63a09a5fb4f68e1ed 100644 (file)
@@ -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 );