LCOV - code coverage report
Current view: top level - src/tags - field.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 14 19 73.7 %
Date: 2019-05-08 03:46:12 Functions: 8 10 80.0 %

          Line data    Source code
       1             : #include "field.hpp"
       2             : 
       3             : namespace qtreports
       4             : {
       5             :     namespace detail
       6             :     {
       7             : 
       8         121 :         Field::Field() {}
       9             : 
      10         241 :         Field::~Field() {}
      11             : 
      12         121 :         void    Field::setClassName( const QString & name )
      13             :         {
      14             :             //int id = QMetaType::type( name.toStdString().c_str() );
      15             :             //QMetaType type( id );
      16             :             //return type.isValid();
      17         121 :             m_className = name;
      18         121 :         }
      19             : 
      20           5 :         const QString   Field::getClassName() const
      21             :         {
      22           5 :             return m_className;
      23             :         }
      24             : 
      25          54 :         void Field::setData( const QVector<QVariant> &data )
      26             :         {
      27          54 :             m_data = data;
      28          54 :         }
      29             : 
      30         739 :         QString Field::getData( int row )
      31             :         {
      32         739 :             return m_data.value( row ).toString();
      33             :         }
      34             : 
      35         285 :         int Field::getRowCount()
      36             :         {
      37         285 :             return m_data.size();
      38             :         }
      39             : 
      40           0 :         const QVariant Field::getDataVar(int row)
      41             :         {
      42           0 :             return m_data[row];
      43             :         }
      44             : 
      45           0 :         void Field::setDataVar(int row, const QVariant & value) {
      46           0 :             m_data[row] = value;
      47           0 :         }
      48             : 
      49             :     }
      50             : }

Generated by: LCOV version 1.14-2-gaa56a43