diff options
| author | 2023-09-20 22:12:32 +0200 | |
|---|---|---|
| committer | 2023-10-18 10:26:35 +0200 | |
| commit | 0c9088c1d63acd418f7e37910ede0f1d59782961 (patch) | |
| tree | 323a921a4c70fd414feb1a0f13ff7e7e7caa2969 /src/modules/objects | |
| parent | Qt6: QStringList is a typedef now, avoid forward declarations (diff) | |
| download | KVIrc-0c9088c1d63acd418f7e37910ede0f1d59782961.tar.gz KVIrc-0c9088c1d63acd418f7e37910ede0f1d59782961.tar.bz2 KVIrc-0c9088c1d63acd418f7e37910ede0f1d59782961.zip | |
Mass rename of margin -> contentsMargins
Diffstat (limited to 'src/modules/objects')
| -rw-r--r-- | src/modules/objects/KvsObject_hBox.cpp | 2 | ||||
| -rw-r--r-- | src/modules/objects/KvsObject_label.cpp | 2 | ||||
| -rw-r--r-- | src/modules/objects/KvsObject_layout.cpp | 2 | ||||
| -rw-r--r-- | src/modules/objects/KvsObject_vBox.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/objects/KvsObject_hBox.cpp b/src/modules/objects/KvsObject_hBox.cpp index de7325f34..2c0da61ab 100644 --- a/src/modules/objects/KvsObject_hBox.cpp +++ b/src/modules/objects/KvsObject_hBox.cpp @@ -111,7 +111,7 @@ KVSO_CLASS_FUNCTION(hBox, setMargin) KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("margin", KVS_PT_UNSIGNEDINTEGER, 0, uMargin) KVSO_PARAMETERS_END(c) - ((KviTalHBox *)widget())->setMargin(uMargin); + ((KviTalHBox *)widget())->setContentsMargins(uMargin, uMargin, uMargin, uMargin); return true; } diff --git a/src/modules/objects/KvsObject_label.cpp b/src/modules/objects/KvsObject_label.cpp index da4744cbd..d555212d4 100644 --- a/src/modules/objects/KvsObject_label.cpp +++ b/src/modules/objects/KvsObject_label.cpp @@ -227,7 +227,7 @@ KVSO_CLASS_FUNCTION(label, setMargin) KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("margin", KVS_PT_UNSIGNEDINTEGER, 0, iMargin) KVSO_PARAMETERS_END(c) - ((QLabel *)widget())->setMargin(iMargin); + ((QLabel *)widget())->setContentsMargins(iMargin, iMargin, iMargin, iMargin); return true; } KVSO_CLASS_FUNCTION(label, margin) diff --git a/src/modules/objects/KvsObject_layout.cpp b/src/modules/objects/KvsObject_layout.cpp index b48e5b2e7..ff9d0e8ac 100644 --- a/src/modules/objects/KvsObject_layout.cpp +++ b/src/modules/objects/KvsObject_layout.cpp @@ -224,7 +224,7 @@ KVSO_CLASS_FUNCTION(layout, setMargin) KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("margin", KVS_PT_UNSIGNEDINTEGER, 0, uMargin) KVSO_PARAMETERS_END(c) - ((QGridLayout *)object())->setMargin(uMargin); + ((QGridLayout *)object())->setContentsMargins(uMargin, uMargin, uMargin, uMargin); return true; } diff --git a/src/modules/objects/KvsObject_vBox.cpp b/src/modules/objects/KvsObject_vBox.cpp index 557dd5b35..e3227d16f 100644 --- a/src/modules/objects/KvsObject_vBox.cpp +++ b/src/modules/objects/KvsObject_vBox.cpp @@ -124,7 +124,7 @@ KVSO_CLASS_FUNCTION(vBox, setMargin) KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("margin", KVS_PT_INT, 0, iMargin) KVSO_PARAMETERS_END(c) - ((KviTalVBox *)widget())->setMargin(iMargin); + ((KviTalVBox *)widget())->setContentsMargins(iMargin, iMargin, iMargin, iMargin); return true; } |
