D6820: Add QValidator to KTimeCombobox

2017-08-04 Thread Kevin Funk
kfunk added inline comments. INLINE COMMENTS > ktimecombobox.cpp:33 > +public: > +KTimeValidator(QString timeFormat, QObject *parent = Q_NULLPTR); > +KTimeValidator(QString timeFormat, QTime min, QTime max, QObject *parent > = Q_NULLPTR); Here and below: `nullptr` can be used directly i

D6820: Add QValidator to KTimeCombobox

2017-08-03 Thread Christoph Feck
cfeck requested changes to this revision. cfeck added inline comments. This revision now requires changes to proceed. INLINE COMMENTS > ktimecombobox.cpp:33 > +public: > +KTimeValidator(QString timeFormat, QObject *parent = Q_NULLPTR); > +KTimeValidator(QString timeFormat, QTime min, QTim

D6820: Add QValidator to KTimeCombobox

2017-08-03 Thread Christoph Feck
cfeck added a comment. Are you sure the patch is complete? I remember there was code which was supposed to be replaced by the new validator. INLINE COMMENTS > ktimecombobox.cpp:608 > #include "moc_ktimecombobox.cpp" > +#include "ktimecombobox.moc" This does not look right. REPOSITORY R2

D6820: Add QValidator to KTimeCombobox

2017-07-31 Thread Martin Bednar
bednar updated this revision to Diff 17452. bednar added a comment. Ran through uncrustify. Found a regression in my patch : colon (":") wouldn't be shown anymore, as it is dependent on the input mask. So I left the input mask, and the QValidator works in addition to the input mask. REPOSI

D6820: Add QValidator to KTimeCombobox

2017-07-22 Thread Christoph Feck
cfeck added a comment. Several code style issues. Please run it through uncrustify-kf5.cfg (see kde-dev-scripts.git) REPOSITORY R236 KWidgetsAddons REVISION DETAIL https://phabricator.kde.org/D6820 To: bednar Cc: cfeck, #frameworks

D6820: Add QValidator to KTimeCombobox

2017-07-21 Thread Martin Bednar
bednar created this revision. bednar added a project: Frameworks. REVISION SUMMARY Seeing the "TODO" in KTimeComboBoxPrivate::timeFormatToInputMask, I decided to try and replace the input mask with a QValidator approach (as seen in KDatePicker). This is a first iteration to see if there is i