summaryrefslogtreecommitdiffstats
path: root/qt-ui/statistics/statisticswidget.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-08-25 16:39:11 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-25 14:00:24 -0700
commit4a6a9a67063002b917f406333ee66f3f74c3d29c (patch)
treee4df537057848a64bcdd0a5d67a2e91c637f418a /qt-ui/statistics/statisticswidget.h
parent3d5dde09adfce0631746eb8b8552dd47e6743c76 (diff)
downloadsubsurface-4a6a9a67063002b917f406333ee66f3f74c3d29c.tar.gz
Use scene()->clear() instead of manually clearing the scene.
When there's a rowsAboutToBeRemoevd, remove all items from the scene() by calling scene()->clear(), instead of creating a method just for that. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/statistics/statisticswidget.h')
-rw-r--r--qt-ui/statistics/statisticswidget.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-ui/statistics/statisticswidget.h b/qt-ui/statistics/statisticswidget.h
index 4e62a10fd..ae988292d 100644
--- a/qt-ui/statistics/statisticswidget.h
+++ b/qt-ui/statistics/statisticswidget.h
@@ -15,7 +15,6 @@ protected:
virtual void resizeEvent(QResizeEvent *event);
public slots:
void modelRowsInserted(const QModelIndex& index, int first, int last);
- void modelRowsRemoved(const QModelIndex& index, int first, int last);
void modelDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
private:
YearlyStatisticsModel *m_model;