QtBase - 2016-12-13 07:58:44 +0000

Function Tree

Path:<top>::QSqlQueryModel
FunctionCondition %eLOC - Effective Lines of Codeā–“McCabe - Cyclomatic Complexity
setQuery
Name: QSqlQueryModel::setQuery
Prototype: void QSqlQueryModel::setQuery(const QString &query, const QSqlDatabase &db)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 469-472
100.000% (1/1)
11
QSqlQueryModel
Name: QSqlQueryModel::QSqlQueryModel
Prototype: QSqlQueryModel::QSqlQueryModel(QObject *parent)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 154-157
100.000% (1/1)
21
QSqlQueryModel
Name: QSqlQueryModel::QSqlQueryModel
Prototype: QSqlQueryModel::QSqlQueryModel(QSqlQueryModelPrivate &dd, QObject *parent)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 161-164
100.000% (1/1)
21
canFetchMore
Name: QSqlQueryModel::canFetchMore
Prototype: bool QSqlQueryModel::canFetchMore(const QModelIndex &parent) const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 209-213
100.000% (1/1)
21
columnCount
Name: QSqlQueryModel::columnCount
Prototype: int QSqlQueryModel::columnCount(const QModelIndex &index) const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 327-331
100.000% (1/1)
21
lastError
Name: QSqlQueryModel::lastError
Prototype: QSqlError QSqlQueryModel::lastError() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 536-540
100.000% (1/1)
21
query
Name: QSqlQueryModel::query
Prototype: QSqlQuery QSqlQueryModel::query() const
Coverage:  0.000% (0/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 524-528
  0.000% (0/1)
21
record
Name: QSqlQueryModel::record
Prototype: QSqlRecord QSqlQueryModel::record() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 586-590
100.000% (1/1)
21
rowCount
Name: QSqlQueryModel::rowCount
Prototype: int QSqlQueryModel::rowCount(const QModelIndex &index) const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 319-323
100.000% (1/1)
21
setLastError
Name: QSqlQueryModel::setLastError
Prototype: void QSqlQueryModel::setLastError(const QSqlError &error)
Coverage:  0.000% (0/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 548-552
  0.000% (0/1)
21
beginInsertColumns
Name: QSqlQueryModel::beginInsertColumns
Prototype: void QSqlQueryModel::beginInsertColumns(const QModelIndex &parent, int first, int last)
Coverage:  75.000% (3/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 253-258
 75.000% (3/4)
32
beginInsertRows
Name: QSqlQueryModel::beginInsertRows
Prototype: void QSqlQueryModel::beginInsertRows(const QModelIndex &parent, int first, int last)
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 217-222
100.000% (4/4)
32
beginRemoveColumns
Name: QSqlQueryModel::beginRemoveColumns
Prototype: void QSqlQueryModel::beginRemoveColumns(const QModelIndex &parent, int first, int last)
Coverage:  75.000% (3/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 271-276
 75.000% (3/4)
32
beginRemoveRows
Name: QSqlQueryModel::beginRemoveRows
Prototype: void QSqlQueryModel::beginRemoveRows(const QModelIndex &parent, int first, int last)
Coverage:  75.000% (3/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 235-240
 75.000% (3/4)
32
endInsertColumns
Name: QSqlQueryModel::endInsertColumns
Prototype: void QSqlQueryModel::endInsertColumns()
Coverage:  75.000% (3/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 262-267
 75.000% (3/4)
32
endInsertRows
Name: QSqlQueryModel::endInsertRows
Prototype: void QSqlQueryModel::endInsertRows()
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 226-231
100.000% (4/4)
32
endRemoveColumns
Name: QSqlQueryModel::endRemoveColumns
Prototype: void QSqlQueryModel::endRemoveColumns()
Coverage:  75.000% (3/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 280-285
 75.000% (3/4)
32
endRemoveRows
Name: QSqlQueryModel::endRemoveRows
Prototype: void QSqlQueryModel::endRemoveRows()
Coverage:  75.000% (3/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 244-249
 75.000% (3/4)
32
beginResetModel
Name: QSqlQueryModel::beginResetModel
Prototype: void QSqlQueryModel::beginResetModel()
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 289-295
100.000% (4/4)
42
endResetModel
Name: QSqlQueryModel::endResetModel
Prototype: void QSqlQueryModel::endResetModel()
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 299-305
100.000% (4/4)
42
fetchMore
Name: QSqlQueryModel::fetchMore
Prototype: void QSqlQueryModel::fetchMore(const QModelIndex &parent)
Coverage:  50.000% (2/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 190-196
 50.000% (2/4)
42
indexInQuery
Name: QSqlQueryModel::indexInQuery
Prototype: QModelIndex QSqlQueryModel::indexInQuery(const QModelIndex &item) const
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 671-678
100.000% (4/4)
52
record
Name: QSqlQueryModel::record
Prototype: QSqlRecord QSqlQueryModel::record(int row) const
Coverage:  71.429% (5/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 564-574
 71.429% (5/7)
73
setHeaderData
Name: QSqlQueryModel::setHeaderData
Prototype: bool QSqlQueryModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role)
Coverage: 100.000% (11/11)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 505-517
100.000% (11/11)
83
clear
Name: QSqlQueryModel::clear
Prototype: void QSqlQueryModel::clear()
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 477-489
100.000% (1/1)
101
headerData
Name: QSqlQueryModel::headerData
Prototype: QVariant QSqlQueryModel::headerData(int section, Qt::Orientation orientation, int role) const
Coverage:  94.737% (18/19)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 369-382
 94.737% (18/19)
105
removeColumns
Name: QSqlQueryModel::removeColumns
Prototype: bool QSqlQueryModel::removeColumns(int column, int count, const QModelIndex &parent)
Coverage:  87.500% (14/16)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 641-657
 87.500% (14/16)
114
data
Name: QSqlQueryModel::data
Prototype: QVariant QSqlQueryModel::data(const QModelIndex &item, int role) const
Coverage:  75.000% (12/16)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 341-363
 75.000% (12/16)
156
insertColumns
Name: QSqlQueryModel::insertColumns
Prototype: bool QSqlQueryModel::insertColumns(int column, int count, const QModelIndex &parent)
Coverage:  90.476% (19/21)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 606-628
 90.476% (19/21)
175
setQuery
Name: QSqlQueryModel::setQuery
Prototype: void QSqlQueryModel::setQuery(const QSqlQuery &query)
Coverage:  66.667% (12/18)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqlquerymodel.cpp
Lines: 409-453
 66.667% (12/18)
285

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9