[patch] K{Int|Double}Validator + new classes

Jarosław Staniek js at iidea.pl
Thu Oct 26 10:51:55 BST 2006


Cleaned up a bit (e.g. use setBase() where reasonable); fixed indentation.

Related proposals:
1. What about having KNumValidator<type> template where 'type' can be: long, 
ulong, qlonglong, qulonglong, etc? Especiall the long long types can be 
useful.

(the only place where there's a switch() needed in a QString::toInt() 
replacement - I can have it implemented internally). 

2. KDecimalValidator - a validator that handles a pair of integers, so you'll 
get full precision, including control over decimal places. 
KFloatValidator is not precise in the practice (it's just a property of float 
type), and neither KDoubleValidator sometimes.

-- 
regards / pozdrawiam, Jaroslaw Staniek
 Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
 Kexi & KOffice: http://www.kexi-project.org, http://www.koffice.org
 KDE3 & KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knumvalidator.patch
Type: text/x-diff
Size: 5118 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061026/57a8ac7c/attachment.patch>


More information about the kde-core-devel mailing list