LCOV - code coverage report
Current view: top level - dbe/src/internal - Validator.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 20 0
Test Date: 2025-12-21 13:07:08 Functions: 0.0 % 4 0

            Line data    Source code
       1              : /// Including DBE
       2              : #include "dbe/Validator.hpp"
       3              : 
       4            0 : dbe::ValidatorAcceptMatch::ValidatorAcceptMatch ( QVariant & Storage, QObject * parent )
       5            0 :   : QValidator ( parent )
       6              : {
       7            0 :   List = Storage.toStringList();
       8            0 : }
       9              : 
      10            0 : QValidator::State dbe::ValidatorAcceptMatch::validate ( QString & Input,
      11              :                                                         int & Position ) const
      12              : {
      13            0 :   Q_UNUSED ( Position )
      14              : 
      15            0 :   for ( const QString & Name : List )
      16              :   {
      17            0 :     if ( Name.compare ( Input ) == 0 )
      18              :     {
      19            0 :       return QValidator::Acceptable;
      20              :     }
      21              :   }
      22              : 
      23            0 :   return QValidator::Intermediate;
      24              : }
      25              : 
      26            0 : dbe::ValidatorAcceptNoMatch::ValidatorAcceptNoMatch ( QVariant & Storage, QObject * parent )
      27            0 :   : QValidator ( parent )
      28              : {
      29            0 :   List = Storage.toStringList();
      30            0 : }
      31              : 
      32            0 : QValidator::State dbe::ValidatorAcceptNoMatch::validate ( QString & Input,
      33              :                                                           int & Position ) const
      34              : {
      35            0 :   Q_UNUSED ( Position )
      36              : 
      37            0 :   for ( const QString & Name : List )
      38              :   {
      39            0 :     if ( Name.compare ( Input ) == 0 )
      40              :     {
      41            0 :       return QValidator::Intermediate;
      42              :     }
      43              :   }
      44              : 
      45            0 :   return QValidator::Acceptable;
      46              : }
        

Generated by: LCOV version 2.0-1