Review Request: Sync display text with edit text for KoProperty's {Date, DateTime, Time}Edit

Jarosław Staniek staniek at kde.org
Fri Jan 4 22:54:44 GMT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107890/#review24715
-----------------------------------------------------------

Ship it!


I tried your code. Please look at http://wstaw.org/m/2013/01/04/plasma-desktopcp2263.png
QLocale does not seem to follow KDE Locale here. But I guess you know that, so I am OK with the patch. I propose to add a //! @todo at least in both classes.

We can say koproperty can be kdelibs-dependent for now; when some of kdelibs land in Qt 5.x we'll have opportunity for modularization.
See also: http://community.kde.org/KDE_Core/KLocale/Frameworks#Calendar_.2F_Date_.2F_Time

- Jarosław Staniek


On Dec. 24, 2012, 12:04 a.m., Friedrich W. H. Kossebau wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/107890/
> -----------------------------------------------------------
> 
> (Updated Dec. 24, 2012, 12:04 a.m.)
> 
> 
> Review request for Calligra and Jarosław Staniek.
> 
> 
> Description
> -------
> 
> Follow-up to https://git.reviewboard.kde.org/r/107792/
> 
> No time/concentration yet found to do as suggested and follow the implementation of "KexiDateTableEdit/KexiTimeTableEdit/KexiDateTimeTableEdit (with Kexi*Formatter)".
> 
> But this patch should at least improve the current situation, having the same format in display and edit mode, and also painting the upper border in edit mode.
> Switched from using KDE KLocale to QLocale for the display (as that is also what is used in the QDateTimeEdit). What should be used in an implementation done as suggested? Use as much kdelibs as possible, or should the KoProperty code trying to be more Qt-only?
> 
> Patch also adds min & max options to DateTimeEdit.
> 
> 
> Diffs
> -----
> 
>   libs/koproperty/editors/dateedit.h 356b236 
>   libs/koproperty/editors/dateedit.cpp 3daa163 
>   libs/koproperty/editors/datetimeedit.h bb04a9c 
>   libs/koproperty/editors/datetimeedit.cpp 09ca91e 
>   libs/koproperty/editors/timeedit.h 6b9861e 
>   libs/koproperty/editors/timeedit.cpp 9bc8e48 
> 
> Diff: http://git.reviewboard.kde.org/r/107890/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Friedrich W. H. Kossebau
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20130104/95adc2c4/attachment.htm>


More information about the calligra-devel mailing list