| Line | Source Code | Coverage |
|---|
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | QAbstractItemDelegate::QAbstractItemDelegate(QObject *parent) | - |
| 6 | : QObject(parent) | - |
| 7 | { | - |
| 8 | | - |
| 9 | } executed: }Execution Count:144 | 144 |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | QAbstractItemDelegate::QAbstractItemDelegate(QObjectPrivate &dd, QObject *parent) | - |
| 17 | : QObject(dd, parent) | - |
| 18 | { | - |
| 19 | | - |
| 20 | } executed: }Execution Count:4684 | 4684 |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | QAbstractItemDelegate::~QAbstractItemDelegate() | - |
| 26 | { | - |
| 27 | | - |
| 28 | } | - |
| 29 | QWidget *QAbstractItemDelegate::createEditor(QWidget *, | - |
| 30 | const QStyleOptionViewItem &, | - |
| 31 | const QModelIndex &) const | - |
| 32 | { | - |
| 33 | return 0; never executed: return 0; | 0 |
| 34 | } | - |
| 35 | void QAbstractItemDelegate::destroyEditor(QWidget *editor, const QModelIndex &index) const | - |
| 36 | { | - |
| 37 | (void)index;; | - |
| 38 | editor->deleteLater(); | - |
| 39 | } executed: }Execution Count:80 | 80 |
| 40 | void QAbstractItemDelegate::setEditorData(QWidget *, | - |
| 41 | const QModelIndex &) const | - |
| 42 | { | - |
| 43 | | - |
| 44 | } | - |
| 45 | void QAbstractItemDelegate::setModelData(QWidget *, | - |
| 46 | QAbstractItemModel *, | - |
| 47 | const QModelIndex &) const | - |
| 48 | { | - |
| 49 | | - |
| 50 | } | - |
| 51 | void QAbstractItemDelegate::updateEditorGeometry(QWidget *, | - |
| 52 | const QStyleOptionViewItem &, | - |
| 53 | const QModelIndex &) const | - |
| 54 | { | - |
| 55 | | - |
| 56 | } | - |
| 57 | bool QAbstractItemDelegate::editorEvent(QEvent *, | - |
| 58 | QAbstractItemModel *, | - |
| 59 | const QStyleOptionViewItem &, | - |
| 60 | const QModelIndex &) | - |
| 61 | { | - |
| 62 | | - |
| 63 | return false; never executed: return false; | 0 |
| 64 | } | - |
| 65 | QString QAbstractItemDelegate::elidedText(const QFontMetrics &fontMetrics, int width, | - |
| 66 | Qt::TextElideMode mode, const QString &text) | - |
| 67 | { | - |
| 68 | return fontMetrics.elidedText(text, mode, width); never executed: return fontMetrics.elidedText(text, mode, width); | 0 |
| 69 | } | - |
| 70 | bool QAbstractItemDelegate::helpEvent(QHelpEvent *event, | - |
| 71 | QAbstractItemView *view, | - |
| 72 | const QStyleOptionViewItem &option, | - |
| 73 | const QModelIndex &index) | - |
| 74 | { | - |
| 75 | (void)option;; | - |
| 76 | | - |
| 77 | if (!event || !view) | 0 |
| 78 | return false; never executed: return false; | 0 |
| 79 | switch (event->type()) { | - |
| 80 | | - |
| 81 | case QEvent::ToolTip: { | - |
| 82 | QHelpEvent *he = static_cast<QHelpEvent*>(event); | - |
| 83 | QVariant tooltip = index.data(Qt::ToolTipRole); | - |
| 84 | if (tooltip.canConvert<QString>()) { never evaluated: tooltip.canConvert<QString>() | 0 |
| 85 | QToolTip::showText(he->globalPos(), tooltip.toString(), view); | - |
| 86 | return true; never executed: return true; | 0 |
| 87 | } | - |
| 88 | break;} | 0 |
| 89 | | - |
| 90 | | - |
| 91 | case QEvent::QueryWhatsThis: { | - |
| 92 | if (index.data(Qt::WhatsThisRole).isValid()) never evaluated: index.data(Qt::WhatsThisRole).isValid() | 0 |
| 93 | return true; never executed: return true; | 0 |
| 94 | break; } | 0 |
| 95 | case QEvent::WhatsThis: { | - |
| 96 | QHelpEvent *he = static_cast<QHelpEvent*>(event); | - |
| 97 | QVariant whatsthis = index.data(Qt::WhatsThisRole); | - |
| 98 | if (whatsthis.canConvert<QString>()) { never evaluated: whatsthis.canConvert<QString>() | 0 |
| 99 | QWhatsThis::showText(he->globalPos(), whatsthis.toString(), view); | - |
| 100 | return true; never executed: return true; | 0 |
| 101 | } | - |
| 102 | break ; } | 0 |
| 103 | | - |
| 104 | default: | - |
| 105 | break; | 0 |
| 106 | } | - |
| 107 | return false; never executed: return false; | 0 |
| 108 | } | - |
| 109 | | - |
| 110 | | - |
| 111 | | - |
| 112 | | - |
| 113 | | - |
| 114 | | - |
| 115 | QVector<int> QAbstractItemDelegate::paintingRoles() const | - |
| 116 | { | - |
| 117 | return QVector<int>(); never executed: return QVector<int>(); | 0 |
| 118 | } | - |
| 119 | | - |
| 120 | | - |
| 121 | | - |
| | |