[kmymoney4] [Bug 354936] Transaction Input Form - Invalid Date Validation
Ralf Habacker
bugzilla_noreply at kde.org
Thu Jun 29 13:45:39 UTC 2017
https://bugs.kde.org/show_bug.cgi?id=354936
Ralf Habacker <ralf.habacker at freenet.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ralf.habacker at freenet.de
--- Comment #4 from Ralf Habacker <ralf.habacker at freenet.de> ---
The problem here is caused by the fact that class kMyMoneyDateInput which
provides this widget used internal QDateEdit and QDateEdit does not support
entering invalid dates.
To fix this issue I think a refactoring or reimplementation of class
kMyMoneyDateInput is required. It probably will use internal a QLineEdit
instead of the QDateEdit and needs to perform the date validation checks by
itself.
The public api is listed below:
class KMM_WIDGETS_EXPORT kMyMoneyDateInput : public KHBox
{
explicit kMyMoneyDateInput();
~kMyMoneyDateInput();
QDate date() const;
void setDate(QDate date);
void setMaximumDate(const QDate& max);
void loadDate(const QDate& date);
void resetDate();
QWidget* focusWidget() const;
void setRange(const QDate & min, const QDate & max);
void markAsBadDate(bool bad = false, const QColor& = QColor());
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list