Refactoring / code cleanup
[weightgraph] / weightgraph / weightview.h
index 7234b36..a95345e 100644 (file)
@@ -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;
 };