*fix deprecated warning QWidget::getContentsMargins

This function is obsolete.

Use contentsMargins().
instead.

This function was introduced in Qt 4.6.
This commit is contained in:
Simon De Backer
2020-05-28 22:28:11 +02:00
committed by Laurent Trinques
parent 61ebbbc23c
commit e56701d336

View File

@@ -232,9 +232,7 @@ void IntegrationMoveTitleBlockTemplatesHandler::initDialog() {
@param button Radio button
*/
void IntegrationMoveTitleBlockTemplatesHandler::radioButtonleftMargin(QRadioButton *button) {
int a, b, c, d;
button -> getContentsMargins(&a, &b, &c, &d);
button -> setContentsMargins(a + 15, b, c, d);
button->contentsMargins().setLeft(button->contentsMargins().left()+15);
}
/**