LCOV - code coverage report
Current view: top level - interfaceframework - qifstandarditem.h (source / functions) Coverage Total Hit
Test: QtInterfaceFramework Lines: 100.0 % 1 1
Test Date: 2024-06-08 10:01:07 Functions: 100.0 % 1 1
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 50.0 % 4 2

             Branch data     Line data    Source code
       1                 :             : // Copyright (C) 2021 The Qt Company Ltd.
       2                 :             : // Copyright (C) 2019 Luxoft Sweden AB
       3                 :             : // Copyright (C) 2018 Pelagicore AG
       4                 :             : // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
       5                 :             : 
       6                 :             : #ifndef QIFSTANDARDITEM_H
       7                 :             : #define QIFSTANDARDITEM_H
       8                 :             : 
       9                 :             : #include <QtCore/QMetaType>
      10                 :             : #include <QtCore/QSharedDataPointer>
      11                 :             : #include <QtCore/QVariantMap>
      12                 :             : #include <QtCore/qobjectdefs.h>
      13                 :             : #include <QtInterfaceFramework/qtifglobal.h>
      14                 :             : 
      15                 :             : QT_BEGIN_NAMESPACE
      16                 :             : 
      17                 :             : class QIfStandardItemPrivate;
      18                 :             : 
      19                 :             : class Q_QTINTERFACEFRAMEWORK_EXPORT QIfStandardItem
      20                 :             : {
      21                 :             :     Q_GADGET
      22                 :             : 
      23                 :             :     Q_PROPERTY(QString id READ id WRITE setId)
      24                 :             :     Q_PROPERTY(QString name READ name)
      25                 :             :     Q_PROPERTY(QString type READ type)
      26                 :             :     Q_PROPERTY(QVariantMap data READ data WRITE setData)
      27                 :             : 
      28                 :             : public:
      29                 :             :     QIfStandardItem();
      30                 :             :     QIfStandardItem(const QIfStandardItem &);
      31                 :             :     QIfStandardItem &operator=(const QIfStandardItem &);
      32                 :             :     virtual ~QIfStandardItem();
      33                 :             : 
      34                 :             :     virtual QString id() const;
      35                 :             :     virtual void setId(const QString &id);
      36                 :             :     virtual QString name() const;
      37                 :             :     virtual QString type() const;
      38                 :             :     virtual QVariantMap data() const;
      39                 :             :     virtual void setData(const QVariantMap &data);
      40                 :             : 
      41                 :             :     bool operator==(const QIfStandardItem &other) const;
      42                 :             :     inline bool operator!=(const QIfStandardItem &other) const { return !(*this == other); }
      43                 :             : 
      44                 :             : private:
      45                 :             :     QSharedDataPointer<QIfStandardItemPrivate> d;
      46                 :             : };
      47                 :             : 
      48                 :             : Q_DECLARE_TYPEINFO(QIfStandardItem, Q_MOVABLE_TYPE);
      49                 :             : 
      50                 :             : using QIfFilterAndBrowseModelItem = QIfStandardItem;
      51                 :             : 
      52                 :             : QT_END_NAMESPACE
      53                 :             : 
      54   [ +  -  +  - ]:          12 : Q_DECLARE_METATYPE(QIfStandardItem)
      55                 :             : 
      56                 :             : #endif // QIFSTANDARDITEM_H
        

Generated by: LCOV version 2.0-1