diff options
Diffstat (limited to 'examples/itemmodel/main.cpp')
-rw-r--r-- | examples/itemmodel/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/itemmodel/main.cpp b/examples/itemmodel/main.cpp index 90bac03b..3325d6a2 100644 --- a/examples/itemmodel/main.cpp +++ b/examples/itemmodel/main.cpp @@ -223,7 +223,7 @@ void GraphDataGenerator::selectedFromTable(int currentRow, int currentColumn, { Q_UNUSED(previousRow) Q_UNUSED(previousColumn) - m_graph->setSelectedBar(QPoint(currentRow, currentColumn)); + m_graph->seriesList().at(0)->setSelectedBar(QPoint(currentRow, currentColumn)); } //! [14] @@ -275,7 +275,7 @@ int main(int argc, char **argv) //! [3] GraphDataGenerator generator(graph, tableWidget); - QObject::connect(graph, &Q3DBars::selectedBarChanged, &generator, + QObject::connect(series, &QBar3DSeries::selectedBarChanged, &generator, &GraphDataGenerator::selectFromTable); QObject::connect(tableWidget, &QTableWidget::currentCellChanged, &generator, &GraphDataGenerator::selectedFromTable); |