summaryrefslogtreecommitdiffstats
path: root/graphbarwidget.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-07-25 13:00:30 +0200
committerArno <am@disconnect.de>2010-07-25 13:00:30 +0200
commit004b9243248a29eaa73b5fae5a5ef7b5ca914f94 (patch)
tree0b1f9f413d798390fba316d5093bbd5dcd466398 /graphbarwidget.h
parentbfcb2cd0e0168e1f740678a626a5d5077cf6e677 (diff)
downloadSheMov-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 'graphbarwidget.h')
-rw-r--r--graphbarwidget.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/graphbarwidget.h b/graphbarwidget.h
deleted file mode 100644
index af7c8ba..0000000
--- a/graphbarwidget.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version
- 2 of the License, or (at your option) any later version.
-*/
-
-#ifndef GRAPHBARWIDGET_H
-#define GRAPHBARWIDGET_H
-
-#include <QWidget>
-#include <QVariant>
-#include <QSize>
-
-class QPaintEvent;
-
-class GraphBarWidget : public QWidget {
- Q_OBJECT
- Q_PROPERTY(int maxValue READ maxValue);
- Q_PROPERTY(QSize maxDescr READ maxDescr);
- Q_PROPERTY(QSize maxCount READ maxCount);
- Q_PROPERTY(QString caption READ caption WRITE setCaption);
- public:
- GraphBarWidget(const QList<QList<QVariant> > data, QWidget *parent = 0);
- ~GraphBarWidget() {}
- QString caption() const { return mCaption; }
- void setCaption(const QString &caption) { mCaption = caption; }
- int maxValue() const;
- QSize maxDescr() const;
- QSize maxCount() const;
- virtual QSize sizeHint() const;
-
- protected:
- void paintEvent(QPaintEvent *);
-
- private:
- int mBarHeight;
- int mMargin;
- QString mCaption;
- QList<QList<QVariant> > mData;
- QList<QSize> mSizes;
-
-};
-
-#endif