| Line | Source Code | Coverage |
|---|
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | QSqlIndex::QSqlIndex(const QString& cursorname, const QString& name) | - |
| 5 | : cursor(cursorname), nm(name) | - |
| 6 | { | - |
| 7 | } executed: }Execution Count:695 | 695 |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | QSqlIndex::QSqlIndex(const QSqlIndex& other) | - |
| 14 | : QSqlRecord(other), cursor(other.cursor), nm(other.nm), sorts(other.sorts) | - |
| 15 | { | - |
| 16 | } executed: }Execution Count:1 | 1 |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | QSqlIndex& QSqlIndex::operator=(const QSqlIndex& other) | - |
| 23 | { | - |
| 24 | cursor = other.cursor; | - |
| 25 | nm = other.nm; | - |
| 26 | sorts = other.sorts; | - |
| 27 | QSqlRecord::operator=(other); | - |
| 28 | return *this; executed: return *this;Execution Count:187 | 187 |
| 29 | } | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | QSqlIndex::~QSqlIndex() | - |
| 36 | { | - |
| 37 | | - |
| 38 | } | - |
| 39 | | - |
| 40 | | - |
| 41 | | - |
| 42 | | - |
| 43 | | - |
| 44 | void QSqlIndex::setName(const QString& name) | - |
| 45 | { | - |
| 46 | nm = name; | - |
| 47 | } | 0 |
| 48 | void QSqlIndex::append(const QSqlField& field) | - |
| 49 | { | - |
| 50 | append(field, false); | - |
| 51 | } executed: }Execution Count:964 | 964 |
| 52 | void QSqlIndex::append(const QSqlField& field, bool desc) | - |
| 53 | { | - |
| 54 | sorts.append(desc); | - |
| 55 | QSqlRecord::append(field); | - |
| 56 | } executed: }Execution Count:964 | 964 |
| 57 | | - |
| 58 | | - |
| 59 | | - |
| 60 | | - |
| 61 | | - |
| 62 | | - |
| 63 | | - |
| 64 | bool QSqlIndex::isDescending(int i) const | - |
| 65 | { | - |
| 66 | if (i >= 0 && i < sorts.size()) never evaluated: i < sorts.size() | 0 |
| 67 | return sorts[i]; never executed: return sorts[i]; | 0 |
| 68 | return false; never executed: return false; | 0 |
| 69 | } | - |
| 70 | | - |
| 71 | | - |
| 72 | | - |
| 73 | | - |
| 74 | | - |
| 75 | | - |
| 76 | | - |
| 77 | void QSqlIndex::setDescending(int i, bool desc) | - |
| 78 | { | - |
| 79 | if (i >= 0 && i < sorts.size()) never evaluated: i < sorts.size() | 0 |
| 80 | sorts[i] = desc; never executed: sorts[i] = desc; | 0 |
| 81 | } | 0 |
| 82 | QString QSqlIndex::createField(int i, const QString& prefix, bool verbose) const | - |
| 83 | { | - |
| 84 | QString f; | - |
| 85 | if (!prefix.isEmpty()) never evaluated: !prefix.isEmpty() | 0 |
| 86 | f += prefix + QLatin1Char('.'); never executed: f += prefix + QLatin1Char('.'); | 0 |
| 87 | f += field(i).name(); | - |
| 88 | if (verbose) | 0 |
| 89 | f += QLatin1Char(' ') + QString((isDescending(i) | 0 |
| 90 | ? QLatin1String("DESC") : QLatin1String("ASC"))); never executed: f += QLatin1Char(' ') + QString((isDescending(i) ? QLatin1String("DESC") : QLatin1String("ASC"))); | 0 |
| 91 | return f; never executed: return f; | 0 |
| 92 | } | - |
| 93 | void QSqlIndex::setCursorName(const QString& cursorName) | - |
| 94 | { | - |
| 95 | cursor = cursorName; | - |
| 96 | } | 0 |
| 97 | | - |
| 98 | | - |
| 99 | | - |
| | |