[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/korganizer
From:       Allen Winter <winterz () verizon ! net>
Date:       2005-03-03 15:48:46
Message-ID: 20050303154846.6AD191751E () office ! kde ! org
[Download RAW message or body]

CVS commit by winterz: 

revert


  M +1 -28     koeditorgeneraltodo.cpp   1.61


--- kdepim/korganizer/koeditorgeneraltodo.cpp  #1.60:1.61
@@ -35,5 +35,4 @@
 #include <qlabel.h>
 #include <qwhatsthis.h>
-#include <qvalidator.h>
 
 #include <kglobal.h>
@@ -161,26 +160,4 @@ void KOEditorGeneralTodo::initTime(QWidg
 }
 
-class CompletedValidator : public QValidator
-{
-public:
-  CompletedValidator( QWidget *parent=0, const char *name=0)
-    : QValidator(parent, name) { }
-//TODO: This validator needs to handle i18n("%")
-    State validate(QString &str, int &) const
-    {
-      if (str.isEmpty())
-        return Acceptable;
-
-      bool ok;
-      int val = str.toInt( &ok );
-      if ( ! ok )
-        return Invalid;
-
-      if ( val < 0 || val > 100 )
-        return Invalid;
-
-      return Acceptable;
-    }
-};
 
 void KOEditorGeneralTodo::initCompletion(QWidget *parent, QBoxLayout *topLayout)
@@ -190,5 +167,4 @@ void KOEditorGeneralTodo::initCompletion
   mCompletedCombo = new QComboBox(parent);
   QWhatsThis::add( mCompletedCombo, whatsThis );
-  mCompletedCombo->setEditable( true );
   for (int i = 0; i <= 100; i+=10) {
     // xgettext:no-c-format
@@ -198,7 +174,4 @@ void KOEditorGeneralTodo::initCompletion
   connect(mCompletedCombo,SIGNAL(activated(int)),SLOT(completedChanged(int)));
   topLayout->addWidget(mCompletedCombo);
-  CompletedValidator *validator =
-    new CompletedValidator( mCompletedCombo, "Completed Validator" );
-  mCompletedCombo->setValidator( validator );
 
   mCompletedLabel = new QLabel(i18n("co&mpleted"),parent);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic