X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=weightgraph%2Fweightview.h;fp=weightgraph%2Fweightview.h;h=a95345ef51586a84c88bf7edf28c576f25bd6487;hb=4a7ac7d52b66c917a4ebf04421cae00d30328727;hp=7234b3694eaf69f15dba64e79f1f56c09a4cd2be;hpb=049783b3f55169effddeb1485791528e4c8a4bd5;p=weightgraph diff --git a/weightgraph/weightview.h b/weightgraph/weightview.h index 7234b36..a95345e 100644 --- a/weightgraph/weightview.h +++ b/weightgraph/weightview.h @@ -30,17 +30,18 @@ public: setFont(f); } - class WeightEditCreator : public QItemEditorCreatorBase + struct WeightEditCreator : public QItemEditorCreatorBase { - public: - WeightEditCreator() : QItemEditorCreatorBase() { } - virtual QWidget *createWidget(QWidget *parent) const + QWidget *createWidget(QWidget *parent) const { return new WeightSpinBox(parent); } - virtual QByteArray valuePropertyName() const { return "value"; } + virtual QByteArray valuePropertyName() const { + return "value"; + } }; - private: + +private: QStyledItemDelegate delegate; };