modeldelegates: remove printing related delegates

Remove HTMLDelegate and ProfilePrintDelagate as
these are obosolete. The print related rendering
at the moment happens via QWebView.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2015-11-09 20:42:12 +02:00 committed by Dirk Hohndel
parent 36314a86f8
commit f0bd39c551
2 changed files with 0 additions and 84 deletions

View file

@ -90,16 +90,6 @@ slots:
void revertModelData(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
};
/* ProfilePrintDelagate:
* this delegate is used to modify the look of the table that is printed
* bellow profiles.
*/
class ProfilePrintDelegate : public QStyledItemDelegate {
public:
explicit ProfilePrintDelegate(QObject *parent = 0);
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
};
class SpinBoxDelegate : public QStyledItemDelegate {
Q_OBJECT
public:
@ -122,14 +112,6 @@ private:
double step;
};
class HTMLDelegate : public ProfilePrintDelegate {
Q_OBJECT
public:
explicit HTMLDelegate(QObject *parent = 0);
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
};
class LocationFilterDelegate : public QStyledItemDelegate {
Q_OBJECT
public: