[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Patch for kpercentage.
From: Laurent Montel <montel () kde ! org>
Date: 2003-11-12 22:11:13
[Download RAW message or body]
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
["kpercentage-int-validator.patch" (text/x-diff)]
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 <klocale.h>
#include <kstandarddirs.h>
#include <kstdguiitem.h>
+#include <knumvalidator.h>
// 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
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic