mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
*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:
committed by
Laurent Trinques
parent
61ebbbc23c
commit
e56701d336
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user