equal
deleted
inserted
replaced
38 |
38 |
39 // Use a little larger buffer for the grid than the default one. |
39 // Use a little larger buffer for the grid than the default one. |
40 mBufferSize = BUFFERSIZE; |
40 mBufferSize = BUFFERSIZE; |
41 |
41 |
42 HgWidgetPrivate::init(container); |
42 HgWidgetPrivate::init(container); |
|
43 q->setPinchEnabled(false); |
|
44 |
|
45 q->connect(mContainer, SIGNAL(emptySpacePressed()), |
|
46 q, SIGNAL(emptySpacePressed())); |
43 } |
47 } |
44 |
48 |
45 void HgGridPrivate::orientationChanged(Qt::Orientation orientation) |
49 void HgGridPrivate::orientationChanged(Qt::Orientation orientation) |
46 { |
50 { |
47 Q_Q(HgGrid); |
51 Q_Q(HgGrid); |
48 |
52 |
49 HgWidgetPrivate::orientationChanged(orientation); |
53 HgWidgetPrivate::orientationChanged(orientation); |
50 q->repolish(); |
54 q->repolish(); |
51 } |
55 } |
52 |
56 |
53 bool HgGridPrivate::effect3dEnabled() const |
57 HgGridContainer* HgGridPrivate::container() |
54 { |
58 { |
55 HgGridContainer *container = qobject_cast<HgGridContainer*>(mContainer); |
59 return qobject_cast<HgGridContainer*>(mContainer); |
56 return container->effect3dEnabled(); |
|
57 } |
60 } |
58 |
61 |
59 void HgGridPrivate::setEffect3dEnabled(bool effect3dEnabled) |
62 const HgGridContainer* HgGridPrivate::container() const |
60 { |
63 { |
61 HgGridContainer *container = qobject_cast<HgGridContainer*>(mContainer); |
64 return qobject_cast<const HgGridContainer*>(mContainer); |
62 container->setEffect3dEnabled(effect3dEnabled); |
|
63 } |
65 } |
64 |
66 |
|
67 |
65 // EOF |
68 // EOF |