--- a/ganeswidgets/src/hggrid.cpp Mon Apr 19 14:40:06 2010 +0300
+++ b/ganeswidgets/src/hggrid.cpp Mon May 03 13:32:54 2010 +0300
@@ -20,7 +20,7 @@
#include "hggridcontainer.h"
HgGrid::HgGrid( Qt::Orientation scrollDirection, QGraphicsItem *parent ):
- HgWidget(new HgGridPrivate, parent)
+ HgWidget( *new HgGridPrivate, parent )
{
Q_D(HgGrid);
d->q_ptr = this;
@@ -28,6 +28,16 @@
d->init(scrollDirection);
}
+HgGrid::HgGrid( Qt::Orientation scrollDirection, HgGridPrivate &dd, QGraphicsItem *parent) :
+ HgWidget( dd, parent )
+{
+ Q_D( HgGrid );
+ d->q_ptr = this;
+
+ d->init(scrollDirection);
+}
+
+
HgGrid::~HgGrid()
{
}