┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/tooltips
diff options
context:
space:
mode:
authorAlexander Lohnau <[email protected]>2021-11-11 20:51:00 +0100
committerAlexander Lohnau <[email protected]>2021-12-01 22:10:58 +0000
commitf1756dd1413fa602f536e057087583be2ddbd2b2 (patch)
tree39b830fdda9c4fdb19319bf09ebb683b66dfcf34 /src/views/tooltips
parentfb483636e859047715780a7a2300cad97afd7208 (diff)
Port deprecated QLayout::margin call
As the method impl suggests, the left value is preferred if all the values are the same. This is the case for the given layout. ```cpp int QLayout::margin() const { int left, top, right, bottom; getContentsMargins(&left, &top, &right, &bottom); if (left == top && top == right && right == bottom) { return left; } else { return -1; } } ```
Diffstat (limited to 'src/views/tooltips')
-rw-r--r--src/views/tooltips/dolphinfilemetadatawidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/tooltips/dolphinfilemetadatawidget.cpp b/src/views/tooltips/dolphinfilemetadatawidget.cpp
index b147135bf..e914593fb 100644
--- a/src/views/tooltips/dolphinfilemetadatawidget.cpp
+++ b/src/views/tooltips/dolphinfilemetadatawidget.cpp
@@ -66,7 +66,7 @@ DolphinFileMetaDataWidget::DolphinFileMetaDataWidget(QWidget* parent) :
QHBoxLayout* layout = new QHBoxLayout(this);
layout->addWidget(m_preview);
- layout->addSpacing(layout->margin());
+ layout->addSpacing(layout->contentsMargins().left());
layout->addLayout(textLayout);
}