| 935 | |
| 936 | QModelIndex parent(const QModelIndex &index) const override { return QModelIndex(); } |
| 937 | int rowCount(const QModelIndex &parent = QModelIndex()) const override |
| 938 | { |
| 939 | int ret = config.numRows; |
| 940 | if(config.pagingOffset > 0) |
| 941 | ret++; |
| 942 | |
| 943 | if(ret == 0) |
| 944 | { |
| 945 | if(!config.statusString.isEmpty()) |
| 946 | ret += config.statusString.count(QLatin1Char('\n')) + 1; |
| 947 | if(config.noVertices) |
| 948 | ret++; |
| 949 | if(config.noInstances) |
| 950 | ret++; |
| 951 | } |
| 952 | |
| 953 | return ret; |
| 954 | } |
| 955 | int columnCount(const QModelIndex &parent = QModelIndex()) const override |
| 956 | { |
| 957 | return totalColumnCount; |
no test coverage detected