]> cloud.milkyroute.net Git - dolphin.git/commit
Port deprecated QLayout::margin call
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Thu, 11 Nov 2021 19:51:00 +0000 (20:51 +0100)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Wed, 1 Dec 2021 22:10:58 +0000 (22:10 +0000)
commitf1756dd1413fa602f536e057087583be2ddbd2b2
tree39b830fdda9c4fdb19319bf09ebb683b66dfcf34
parentfb483636e859047715780a7a2300cad97afd7208
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;
    }
}
```
src/views/tooltips/dolphinfilemetadatawidget.cpp