From kde-devel Wed Nov 12 22:11:13 2003 From: Laurent Montel Date: Wed, 12 Nov 2003 22:11:13 +0000 To: kde-devel Subject: Patch for kpercentage. X-MARC-Message: https://marc.info/?l=kde-devel&m=106867541703696 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-00=_BArs/vgnIcJme7T" --Boundary-00=_BArs/vgnIcJme7T Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Percentage programm use just int value. So we can use kintvalidator. Could you look at this patch, and say me if I can commit it, please. Regards --Boundary-00=_BArs/vgnIcJme7T Content-Type: text/x-diff; charset="us-ascii"; name="kpercentage-int-validator.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kpercentage-int-validator.patch" cvs diff: Diffing . cvs diff: Diffing kpercentage Index: kpercentage/kpercentmain.cpp =================================================================== RCS file: /home/kde/kdeedu/kpercentage/kpercentage/kpercentmain.cpp,v retrieving revision 1.33 diff -u -u -p -r1.33 kpercentmain.cpp --- kpercentage/kpercentmain.cpp 12 Nov 2003 21:47:51 -0000 1.33 +++ kpercentage/kpercentmain.cpp 12 Nov 2003 22:09:37 -0000 @@ -41,6 +41,7 @@ #include #include #include +#include // local includes #include "kanswer.h" @@ -61,12 +62,15 @@ KPercentMain::KPercentMain( QWidget *par line_edit_percentage = new QLineEdit( this, "line_edit_percentage" ); line_edit_percentage->setAlignment( int( QLineEdit::AlignHCenter ) ); + line_edit_percentage->setValidator( new KIntValidator( line_edit_percentage ) ); line_edit_basevalue = new QLineEdit( this, "line_edit_basevalue" ); line_edit_basevalue->setAlignment( int( QLineEdit::AlignHCenter ) ); + line_edit_basevalue->setValidator( new KIntValidator( line_edit_basevalue ) ); line_edit_percentvalue = new QLineEdit( this, "line_edit_percentvalue" ); line_edit_percentvalue->setAlignment( int( QLineEdit::AlignHCenter ) ); + line_edit_percentvalue->setValidator( new KIntValidator( line_edit_percentvalue ) ); progress_bar_count = new QProgressBar( this, "progress_bar_count" ); progress_bar_count->setFrameShape( QProgressBar::Panel ); cvs diff: Diffing kpercentage/icons cvs diff: Diffing kpercentage/icons/actions cvs diff: Diffing kpercentage/pics --Boundary-00=_BArs/vgnIcJme7T Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --Boundary-00=_BArs/vgnIcJme7T--