equal
deleted
inserted
replaced
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); |