src/gui/widgets/qdialogbuttonbox.cpp
changeset 18 2f34d5167611
parent 3 41300fa6a67c
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
  1015     If the role is invalid, the button is not added.
  1015     If the role is invalid, the button is not added.
  1016 
  1016 
  1017     If the button has already been added, it is removed and added again with the
  1017     If the button has already been added, it is removed and added again with the
  1018     new role.
  1018     new role.
  1019 
  1019 
       
  1020     \note The button box takes ownership of the button.
       
  1021 
  1020     \sa removeButton(), clear()
  1022     \sa removeButton(), clear()
  1021 */
  1023 */
  1022 void QDialogButtonBox::addButton(QAbstractButton *button, ButtonRole role)
  1024 void QDialogButtonBox::addButton(QAbstractButton *button, ButtonRole role)
  1023 {
  1025 {
  1024     Q_D(QDialogButtonBox);
  1026     Q_D(QDialogButtonBox);