[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: [PATCH] KWord's RTF import and pictures
From: Thomas Zander <zander () planescape ! com>
Date: 2002-07-22 21:25:03
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 22 July 2002 23:09, Nicolas Goutte wrote:
> On Montag, 22. Juli 2002 09:36, Thomas Zander wrote:
> > Are you saying that KoPictureKey expects a date?? That is soo ugly!
>
> Yes, it is perhaps ugly, but as QDateTime is used and as QDateTime::year
> returns curious years (curious==very high) when the date is invalid, we
> have not much choice.
>
> Import filter of other applications may use a date/time structure of their
> system and could possibly choke at QT's curious year. There is also the
> problem that it is not guaranteed that future QT version will still accept
> such a year for creating a QDateTime. So I preferred to be safe than sorry.
>
> Meanwhile I have found a way to use your idea of a counter. It can work by
> using QDateTime::setTime_t (perhaps with an offset to avoid having a date
> below 1970-01-01, again for compactibility.)
I actually meant to NOT use QDateTime at all, but just a string.
Something like:
"picture001"
Or a string like:
" 1970-01-01"
but always use it as a string, not a datetime.
it is still no problem at all to create a unique string with the QDateTime,
but just the creation of that string. Not use it afterwards like that
anymore.
- --
Thomas Zander zander@planescape.com
We are what we pretend to be
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9PHgvCojCW6H2z/QRAu7DAKCvQeN5kEAph1VASnXsEs8oSu9tigCfUs9C
l8hxgE0VjlUL2x9xe4IYVn4=
=ndx/
-----END PGP SIGNATURE-----
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic