| 87 | } |
| 88 | |
| 89 | void MainWindow::initializeDataModel() |
| 90 | { |
| 91 | m_model = new QStandardItemModel(nBubbles, 2); |
| 92 | m_model->setHeaderData(0, Qt::Horizontal, tr("Some Bubbles")); |
| 93 | for (int i = 0; i < nBubbles; ++i) { |
| 94 | const QModelIndex indexX = m_model->index(i, 0); |
| 95 | const QModelIndex indexY = m_model->index(i, 1); |
| 96 | |
| 97 | m_model->setData(indexX, QVariant(bubblesData[i].x), Qt::DisplayRole); |
| 98 | |
| 99 | m_model->setData(indexY, QVariant(bubblesData[i].y), Qt::DisplayRole); |
| 100 | |
| 101 | m_model->setData(indexY, bubblesData[i].size, ROLE_SIZE); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | void MainWindow::setMarkerAttributes() |
| 106 | { |
nothing calls this directly
no test coverage detected