| 43 | } |
| 44 | |
| 45 | void |
| 46 | DialogButtonBox::addButton(QAbstractButton *button, ButtonRole role) |
| 47 | { |
| 48 | QDialogButtonBox::addButton(button, role); |
| 49 | button->setAttribute(Qt::WA_LayoutUsesWidgetRect); // Don't use the layout rect calculated from QMacStyle. |
| 50 | button->setFont( QApplication::font() ); // necessary, or the buttons will get the default font size |
| 51 | } |
| 52 | |
| 53 | QPushButton * |
| 54 | DialogButtonBox::addButton(StandardButton button) |
no test coverage detected