diff options
Diffstat (limited to 'src/charts/boxplotchart/qboxplotmodelmapper.cpp')
-rw-r--r-- | src/charts/boxplotchart/qboxplotmodelmapper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/charts/boxplotchart/qboxplotmodelmapper.cpp b/src/charts/boxplotchart/qboxplotmodelmapper.cpp index 176f2411..2dcd19ff 100644 --- a/src/charts/boxplotchart/qboxplotmodelmapper.cpp +++ b/src/charts/boxplotchart/qboxplotmodelmapper.cpp @@ -60,6 +60,7 @@ void QBoxPlotModelMapper::setModel(QAbstractItemModel *model) d->m_model = model; d->initializeBoxFromModel(); // connect signals from the model + connect(d->m_model, SIGNAL(modelReset()), d, SLOT(initializeBoxFromModel())); connect(d->m_model, SIGNAL(dataChanged(QModelIndex,QModelIndex)), d, SLOT(modelUpdated(QModelIndex,QModelIndex))); connect(d->m_model, SIGNAL(headerDataChanged(Qt::Orientation,int,int)), d, SLOT(modelHeaderDataUpdated(Qt::Orientation,int,int))); connect(d->m_model, SIGNAL(rowsInserted(QModelIndex,int,int)), d, SLOT(modelRowsAdded(QModelIndex,int,int))); |