equal
deleted
inserted
replaced
146 /*! |
146 /*! |
147 Contructs a QGraphicsLayout object. |
147 Contructs a QGraphicsLayout object. |
148 |
148 |
149 \a parent is passed to QGraphicsLayoutItem's constructor and the |
149 \a parent is passed to QGraphicsLayoutItem's constructor and the |
150 QGraphicsLayoutItem's isLayout argument is set to \e true. |
150 QGraphicsLayoutItem's isLayout argument is set to \e true. |
|
151 |
|
152 If \a parent is a QGraphicsWidget the layout will be installed |
|
153 on that widget. (Note that installing a layout will delete the old one |
|
154 installed.) |
151 */ |
155 */ |
152 QGraphicsLayout::QGraphicsLayout(QGraphicsLayoutItem *parent) |
156 QGraphicsLayout::QGraphicsLayout(QGraphicsLayoutItem *parent) |
153 : QGraphicsLayoutItem(*new QGraphicsLayoutPrivate) |
157 : QGraphicsLayoutItem(*new QGraphicsLayoutPrivate) |
154 { |
158 { |
155 setParentLayoutItem(parent); |
159 setParentLayoutItem(parent); |