From e56701d336267b99d59c35dbd514ba26c60fdf49 Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Thu, 28 May 2020 22:28:11 +0200 Subject: [PATCH] *fix deprecated warning QWidget::getContentsMargins This function is obsolete. Use contentsMargins(). instead. This function was introduced in Qt 4.6. --- sources/titleblock/integrationmovetemplateshandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sources/titleblock/integrationmovetemplateshandler.cpp b/sources/titleblock/integrationmovetemplateshandler.cpp index cb5cad6ce..397e11861 100644 --- a/sources/titleblock/integrationmovetemplateshandler.cpp +++ b/sources/titleblock/integrationmovetemplateshandler.cpp @@ -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); } /**