src/gui/widgets/qmdiarea.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   839     if (!(child->windowFlags() & Qt::SubWindow))
   839     if (!(child->windowFlags() & Qt::SubWindow))
   840         child->setWindowFlags(Qt::SubWindow);
   840         child->setWindowFlags(Qt::SubWindow);
   841     child->installEventFilter(q);
   841     child->installEventFilter(q);
   842 
   842 
   843     QObject::connect(child, SIGNAL(aboutToActivate()), q, SLOT(_q_deactivateAllWindows()));
   843     QObject::connect(child, SIGNAL(aboutToActivate()), q, SLOT(_q_deactivateAllWindows()));
   844     QObject::connect(child, SIGNAL(windowStateChanged(Qt::WindowStates, Qt::WindowStates)),
   844     QObject::connect(child, SIGNAL(windowStateChanged(Qt::WindowStates,Qt::WindowStates)),
   845                      q, SLOT(_q_processWindowStateChanged(Qt::WindowStates, Qt::WindowStates)));
   845                      q, SLOT(_q_processWindowStateChanged(Qt::WindowStates,Qt::WindowStates)));
   846 }
   846 }
   847 
   847 
   848 /*!
   848 /*!
   849     \internal
   849     \internal
   850 */
   850 */
  1945 }
  1945 }
  1946 
  1946 
  1947 /*!
  1947 /*!
  1948     Removes \a widget from the MDI area. The \a widget must be
  1948     Removes \a widget from the MDI area. The \a widget must be
  1949     either a QMdiSubWindow or a widget that is the internal widget of
  1949     either a QMdiSubWindow or a widget that is the internal widget of
  1950     a subwindow. Note that the subwindow is not deleted by QMdiArea
  1950     a subwindow. Note \a widget is never actually deleted by QMdiArea.
  1951     and that its parent is set to 0.
  1951     If a QMdiSubWindow is passed in its parent is set to 0 and it is
       
  1952     removed, but if an internal widget is passed in the child widget
       
  1953     is set to 0 but the QMdiSubWindow is not removed.
  1952 
  1954 
  1953     \sa addSubWindow()
  1955     \sa addSubWindow()
  1954 */
  1956 */
  1955 void QMdiArea::removeSubWindow(QWidget *widget)
  1957 void QMdiArea::removeSubWindow(QWidget *widget)
  1956 {
  1958 {