[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: Re: [Kde-pim] Review Request: Add minimum and maximum date limit
From: "John Layt" <johnlayt () googlemail ! com>
Date: 2010-09-25 13:41:59
Message-ID: 20100925134159.29684.57069 () vidsolbach ! de
[Download RAW message or body]
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/5445/#review7786
-----------------------------------------------------------
Ship it!
Looks good except for the abbreviated naming in the api, it should be full names like \
setMinimumDate() and setMaximumDate(), this also keeps it consistent with the \
QDateEdit api. You could also do a setDateRange(min,max) convenience method like \
QDateEdit has.
- John
On 2010-09-25 00:22:53, David Jarvie wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://svn.reviewboard.kde.org/r/5445/
> -----------------------------------------------------------
>
> (Updated 2010-09-25 00:22:53)
>
>
> Review request for KDE PIM.
>
>
> Summary
> -------
>
> This patch is to add the option of setting a minimum and/or maximum date which the \
> user can enter in KPIM::KDateEdit. By default, the current behaviour is unchanged, \
> i.e. there are no limits. If the user tries to enter a date outside the range, an \
> error message is displayed and the date is reset to the appropriate limit value.
> KAlarm has used this functionality for a long time, by means of a class derived \
> from KDateEdit. It would be better for future maintenance to incorporate it into \
> the libkdepim class, especially before any move to kdelibs.
>
> Diffs
> -----
>
> trunk/KDE/kdepim/kalarm/alarmtimewidget.h 1179188
> trunk/KDE/kdepim/kalarm/alarmtimewidget.cpp 1179188
> trunk/KDE/kdepim/kalarm/lib/dateedit.h 1179188
> trunk/KDE/kdepim/kalarm/lib/dateedit.cpp 1179188
> trunk/KDE/kdepim/kalarm/recurrenceedit.h 1179188
> trunk/KDE/kdepim/kalarm/recurrenceedit.cpp 1179188
> trunk/KDE/kdepim/libkdepim/kdateedit.h 1179188
> trunk/KDE/kdepim/libkdepim/kdateedit.cpp 1179188
>
> Diff: http://svn.reviewboard.kde.org/r/5445/diff
>
>
> Testing
> -------
>
> It works in KAlarm, in the New Alarm dialog.
>
>
> Thanks,
>
> David
>
>
_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic