diff options
Diffstat (limited to 'qt-ui/statistics')
-rw-r--r-- | qt-ui/statistics/monthstatistics.cpp | 0 | ||||
-rw-r--r-- | qt-ui/statistics/monthstatistics.h | 0 | ||||
-rw-r--r-- | qt-ui/statistics/statisticsbar.cpp | 0 | ||||
-rw-r--r-- | qt-ui/statistics/statisticsbar.h | 0 | ||||
-rw-r--r-- | qt-ui/statistics/statisticswidget.cpp | 41 | ||||
-rw-r--r-- | qt-ui/statistics/statisticswidget.h | 23 | ||||
-rw-r--r-- | qt-ui/statistics/yearstatistics.cpp | 0 | ||||
-rw-r--r-- | qt-ui/statistics/yearstatistics.h | 0 |
8 files changed, 0 insertions, 64 deletions
diff --git a/qt-ui/statistics/monthstatistics.cpp b/qt-ui/statistics/monthstatistics.cpp deleted file mode 100644 index e69de29bb..000000000 --- a/qt-ui/statistics/monthstatistics.cpp +++ /dev/null diff --git a/qt-ui/statistics/monthstatistics.h b/qt-ui/statistics/monthstatistics.h deleted file mode 100644 index e69de29bb..000000000 --- a/qt-ui/statistics/monthstatistics.h +++ /dev/null diff --git a/qt-ui/statistics/statisticsbar.cpp b/qt-ui/statistics/statisticsbar.cpp deleted file mode 100644 index e69de29bb..000000000 --- a/qt-ui/statistics/statisticsbar.cpp +++ /dev/null diff --git a/qt-ui/statistics/statisticsbar.h b/qt-ui/statistics/statisticsbar.h deleted file mode 100644 index e69de29bb..000000000 --- a/qt-ui/statistics/statisticsbar.h +++ /dev/null diff --git a/qt-ui/statistics/statisticswidget.cpp b/qt-ui/statistics/statisticswidget.cpp deleted file mode 100644 index 3e91fa317..000000000 --- a/qt-ui/statistics/statisticswidget.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include "statisticswidget.h" -#include "yearlystatisticsmodel.h" -#include <QModelIndex> - -YearlyStatisticsWidget::YearlyStatisticsWidget(QWidget *parent): - QGraphicsView(parent), - m_model(NULL) -{ -} - -void YearlyStatisticsWidget::setModel(YearlyStatisticsModel *m) -{ - m_model = m; - connect(m, SIGNAL(dataChanged(QModelIndex,QModelIndex)), - this, SLOT(modelDataChanged(QModelIndex,QModelIndex))); - connect(m, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), - scene(), SLOT(clear())); - connect(m, SIGNAL(rowsInserted(QModelIndex,int,int)), - this, SLOT(modelRowsInserted(QModelIndex,int,int))); - - modelRowsInserted(QModelIndex(),0,m_model->rowCount()-1); -} - -void YearlyStatisticsWidget::modelRowsInserted(const QModelIndex &index, int first, int last) -{ - // stub -} - -void YearlyStatisticsWidget::modelDataChanged(const QModelIndex &topLeft, const QModelIndex& bottomRight) -{ - Q_UNUSED(topLeft); - Q_UNUSED(bottomRight); - scene()->clear(); - modelRowsInserted(QModelIndex(),0,m_model->rowCount()-1); -} - -void YearlyStatisticsWidget::resizeEvent(QResizeEvent *event) -{ - QGraphicsView::resizeEvent(event); - fitInView(sceneRect(), Qt::IgnoreAspectRatio); -} diff --git a/qt-ui/statistics/statisticswidget.h b/qt-ui/statistics/statisticswidget.h deleted file mode 100644 index ae988292d..000000000 --- a/qt-ui/statistics/statisticswidget.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef YEARLYSTATISTICSWIDGET_H -#define YEARLYSTATISTICSWIDGET_H - -#include <QGraphicsView> - -class YearlyStatisticsModel; -class QModelIndex; - -class YearlyStatisticsWidget : public QGraphicsView { - Q_OBJECT -public: - YearlyStatisticsWidget(QWidget *parent = 0); - void setModel(YearlyStatisticsModel *m); -protected: - virtual void resizeEvent(QResizeEvent *event); -public slots: - void modelRowsInserted(const QModelIndex& index, int first, int last); - void modelDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -private: - YearlyStatisticsModel *m_model; -}; - -#endif
\ No newline at end of file diff --git a/qt-ui/statistics/yearstatistics.cpp b/qt-ui/statistics/yearstatistics.cpp deleted file mode 100644 index e69de29bb..000000000 --- a/qt-ui/statistics/yearstatistics.cpp +++ /dev/null diff --git a/qt-ui/statistics/yearstatistics.h b/qt-ui/statistics/yearstatistics.h deleted file mode 100644 index e69de29bb..000000000 --- a/qt-ui/statistics/yearstatistics.h +++ /dev/null |