From e0737c56c1e384e05064a0c6e1ac46979371041b Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Wed, 19 Dec 2018 22:58:32 +0100 Subject: New upstream version 2.0.0+repack --- RestrictedSpinBox.cpp | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 RestrictedSpinBox.cpp (limited to 'RestrictedSpinBox.cpp') diff --git a/RestrictedSpinBox.cpp b/RestrictedSpinBox.cpp deleted file mode 100644 index d3201b33..00000000 --- a/RestrictedSpinBox.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "RestrictedSpinBox.hpp" - -#include -#include - -#include - -QValidator::State RestrictedSpinBox::validate (QString& input, int& pos) const -{ - // start by doing the standard QSpinBox validation - auto valid = HintedSpinBox::validate (input, pos); - // extra validation - if (QValidator::Acceptable - && values ().end () == std::find (values ().begin (), values ().end (), valueFromText (input))) - { - valid = QValidator::Intermediate; - } - return valid; -} -- cgit v1.2.3