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

Function Tree

Path:<top>::QSqlTableModel
FunctionCondition %▾eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexity
tableName
Name: QSqlTableModel::tableName
Prototype: QString QSqlTableModel::tableName() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 348-352
100.000% (1/1)
21
submit
Name: QSqlTableModel::submit
Prototype: bool QSqlTableModel::submit()
Coverage: 100.000% (6/6)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 807-813
100.000% (6/6)
42
sort
Name: QSqlTableModel::sort
Prototype: void QSqlTableModel::sort(int column, Qt::SortOrder order)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 949-953
100.000% (1/1)
21
setTable
Name: QSqlTableModel::setTable
Prototype: void QSqlTableModel::setTable(const QString &tableName)
Coverage: 100.000% (10/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 323-343
100.000% (10/10)
124
setSort
Name: QSqlTableModel::setSort
Prototype: void QSqlTableModel::setSort(int column, Qt::SortOrder order)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 962-967
100.000% (1/1)
31
setQuery
Name: QSqlTableModel::setQuery
Prototype: void QSqlTableModel::setQuery(const QSqlQuery &query)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 605-608
100.000% (1/1)
11
setFilter
Name: QSqlTableModel::setFilter
Prototype: void QSqlTableModel::setFilter(const QString &filter)
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1259-1265
100.000% (4/4)
42
setEditStrategy
Name: QSqlTableModel::setEditStrategy
Prototype: void QSqlTableModel::setEditStrategy(EditStrategy strategy)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 860-865
100.000% (1/1)
31
rowCount
Name: QSqlTableModel::rowCount
Prototype: int QSqlTableModel::rowCount(const QModelIndex &parent) const
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1204-1212
100.000% (4/4)
42
revertAll
Name: QSqlTableModel::revertAll
Prototype: void QSqlTableModel::revertAll()
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 883-890
100.000% (4/4)
42
revert
Name: QSqlTableModel::revert
Prototype: void QSqlTableModel::revert()
Coverage: 100.000% (6/6)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 828-833
100.000% (6/6)
32
record
Name: QSqlTableModel::record
Prototype: QSqlRecord QSqlTableModel::record() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1322-1325
100.000% (1/1)
11
record
Name: QSqlTableModel::record
Prototype: QSqlRecord QSqlTableModel::record(int row) const
Coverage: 100.000% (7/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1339-1355
100.000% (7/7)
83
primaryValues
Name: QSqlTableModel::primaryValues
Prototype: QSqlRecord QSqlTableModel::primaryValues(int row) const
Coverage: 100.000% (6/6)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1437-1448
100.000% (6/6)
62
primaryKey
Name: QSqlTableModel::primaryKey
Prototype: QSqlIndex QSqlTableModel::primaryKey() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 912-916
100.000% (1/1)
21
orderByClause
Name: QSqlTableModel::orderByClause
Prototype: QString QSqlTableModel::orderByClause() const
Coverage: 100.000% (6/6)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 975-988
100.000% (6/6)
82
isDirty
Name: QSqlTableModel::isDirty
Prototype: bool QSqlTableModel::isDirty() const
Coverage: 100.000% (7/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 505-515
100.000% (7/7)
73
insertRowIntoTable
Name: QSqlTableModel::insertRowIntoTable
Prototype: bool QSqlTableModel::insertRowIntoTable(const QSqlRecord &values)
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 662-679
100.000% (4/4)
112
filter
Name: QSqlTableModel::filter
Prototype: QString QSqlTableModel::filter() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1241-1245
100.000% (1/1)
21
editStrategy
Name: QSqlTableModel::editStrategy
Prototype: QSqlTableModel::EditStrategy QSqlTableModel::editStrategy() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 872-876
100.000% (1/1)
21
database
Name: QSqlTableModel::database
Prototype: QSqlDatabase QSqlTableModel::database() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 936-940
100.000% (1/1)
21
data
Name: QSqlTableModel::data
Prototype: QVariant QSqlTableModel::data(const QModelIndex &index, int role) const
Coverage: 100.000% (11/11)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 469-480
100.000% (11/11)
73
clear
Name: QSqlTableModel::clear
Prototype: void QSqlTableModel::clear()
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1269-1276
100.000% (1/1)
51
QSqlTableModel
Name: QSqlTableModel::QSqlTableModel
Prototype: QSqlTableModel::QSqlTableModel(QObject *parent, QSqlDatabase db)
Coverage: 100.000% (3/3)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 289-294
100.000% (3/3)
21
removeRows
Name: QSqlTableModel::removeRows
Prototype: bool QSqlTableModel::removeRows(int row, int count, const QModelIndex &parent)
Coverage:  94.872% (37/39)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1083-1118
 94.872% (37/39)
2311
select
Name: QSqlTableModel::select
Prototype: bool QSqlTableModel::select()
Coverage:  88.889% (8/9)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 363-385
 88.889% (8/9)
143
submitAll
Name: QSqlTableModel::submitAll
Prototype: bool QSqlTableModel::submitAll()
Coverage:  87.805% (36/41)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 733-786
 87.805% (36/41)
3315
setData
Name: QSqlTableModel::setData
Prototype: bool QSqlTableModel::setData(const QModelIndex &index, const QVariant &value, int role)
Coverage:  87.500% (28/32)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 562-596
 87.500% (28/32)
238
insertRows
Name: QSqlTableModel::insertRows
Prototype: bool QSqlTableModel::insertRows(int row, int count, const QModelIndex &parent)
Coverage:  80.645% (25/31)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1140-1175
 80.645% (25/31)
248
flags
Name: QSqlTableModel::flags
Prototype: Qt::ItemFlags QSqlTableModel::flags(const QModelIndex &index) const
Coverage:  78.947% (30/38)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1280-1312
 78.947% (30/38)
2010
setRecord
Name: QSqlTableModel::setRecord
Prototype: bool QSqlTableModel::setRecord(int row, const QSqlRecord &values)
Coverage:  77.143% (27/35)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1379-1428
 77.143% (27/35)
3411
selectRow
Name: QSqlTableModel::selectRow
Prototype: bool QSqlTableModel::selectRow(int row)
Coverage:  72.973% (27/37)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 398-464
 72.973% (27/37)
4111
isDirty
Name: QSqlTableModel::isDirty
Prototype: bool QSqlTableModel::isDirty(const QModelIndex &index) const
Coverage:  71.429% (5/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 524-538
 71.429% (5/7)
103
QSqlTableModel
Name: QSqlTableModel::QSqlTableModel
Prototype: QSqlTableModel::QSqlTableModel(QSqlTableModelPrivate &dd, QObject *parent, QSqlDatabase db)
Coverage:  66.667% (2/3)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 298-303
 66.667% (2/3)
21
selectStatement
Name: QSqlTableModel::selectStatement
Prototype: QString QSqlTableModel::selectStatement() const
Coverage:  60.000% (6/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1007-1031
 60.000% (6/10)
184
insertRecord
Name: QSqlTableModel::insertRecord
Prototype: bool QSqlTableModel::insertRecord(int row, const QSqlRecord &record)
Coverage:  60.000% (6/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1189-1200
 60.000% (6/10)
84
removeColumns
Name: QSqlTableModel::removeColumns
Prototype: bool QSqlTableModel::removeColumns(int column, int count, const QModelIndex &parent)
Coverage:  57.143% (8/14)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1042-1052
 57.143% (8/14)
84
updateRowInTable
Name: QSqlTableModel::updateRowInTable
Prototype: bool QSqlTableModel::updateRowInTable(int row, const QSqlRecord &values)
Coverage:  50.000% (5/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 626-646
 50.000% (5/10)
142
revertRow
Name: QSqlTableModel::revertRow
Prototype: void QSqlTableModel::revertRow(int row)
Coverage:  50.000% (2/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 897-904
 50.000% (2/4)
42
indexInQuery
Name: QSqlTableModel::indexInQuery
Prototype: QModelIndex QSqlTableModel::indexInQuery(const QModelIndex &item) const
Coverage:  50.000% (2/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 1226-1234
 50.000% (2/4)
52
deleteRowFromTable
Name: QSqlTableModel::deleteRowFromTable
Prototype: bool QSqlTableModel::deleteRowFromTable(int row)
Coverage:  50.000% (3/6)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 693-716
 50.000% (3/6)
172
headerData
Name: QSqlTableModel::headerData
Prototype: QVariant QSqlTableModel::headerData(int section, Qt::Orientation orientation, int role) const
Coverage:  16.667% (2/12)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 485-496
 16.667% (2/12)
84
setPrimaryKey
Name: QSqlTableModel::setPrimaryKey
Prototype: void QSqlTableModel::setPrimaryKey(const QSqlIndex &key)
Coverage:  0.000% (0/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 927-931
  0.000% (0/1)
21
fieldIndex
Name: QSqlTableModel::fieldIndex
Prototype: int QSqlTableModel::fieldIndex(const QString &fieldName) const
Coverage:  0.000% (0/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/sql/models/qsqltablemodel.cpp
Lines: 994-998
  0.000% (0/1)
21

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