src/gui/graphicsview/qgraphicslayout.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   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);