src/gui/widgets/qdialogbuttonbox.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
  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);