diff options
author | Arno <am@disconnect.de> | 2010-07-25 13:00:30 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-07-25 13:00:30 +0200 |
commit | 004b9243248a29eaa73b5fae5a5ef7b5ca914f94 (patch) | |
tree | 0b1f9f413d798390fba316d5093bbd5dcd466398 /statisticsdialog.h | |
parent | bfcb2cd0e0168e1f740678a626a5d5077cf6e677 (diff) | |
download | SheMov-004b9243248a29eaa73b5fae5a5ef7b5ca914f94.tar.gz SheMov-004b9243248a29eaa73b5fae5a5ef7b5ca914f94.tar.bz2 SheMov-004b9243248a29eaa73b5fae5a5ef7b5ca914f94.zip |
Fixed StatisticsDialog
adapted StatisticsDialog to the new database schema and make it use
WebKit and HTML to display the graph bars.
This change obsoleted the classes ActorCountModel and GraphBarWidget.
Diffstat (limited to 'statisticsdialog.h')
-rw-r--r-- | statisticsdialog.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/statisticsdialog.h b/statisticsdialog.h index b431a07..70f2e55 100644 --- a/statisticsdialog.h +++ b/statisticsdialog.h @@ -9,12 +9,8 @@ #define STATISTICSDIALOG_H #include <QDialog> -#include <QMap> - -class QTabWidget; -class QPaintEvent; -class QSize; -class QPushButton; +#include <QList> +#include <QVariant> class StatisticsDialog : public QDialog { Q_OBJECT @@ -23,8 +19,10 @@ class StatisticsDialog : public QDialog { ~StatisticsDialog() {} private: - QTabWidget *mTab; - QPushButton *mOk; + QString table(const QList<QList<QVariant> > &data, int max) const; + QList<QList<QVariant> > queryData(const QString &query) const; + int max(const QList<QList<QVariant> > &data) const; + QString generalStatistics() const; }; #endif |