]> cloud.milkyroute.net Git - dolphin.git/commit
Port to non-deprecated QLabel::pixmap()
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 14 Oct 2020 21:46:40 +0000 (23:46 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 14 Oct 2020 23:22:00 +0000 (01:22 +0200)
commitde6933617868df265f4a6534c764d8b9f7a0825c
treebcf19f0a88173fbb17474922293e70bce951133c
parenta403df91b7a4f794f95604a28a56644d4c06ab58
Port to non-deprecated QLabel::pixmap()

Quoting from:
https://github.com/qt/qtbase/commit/714409b23ce5ec33e56adce5ba1966aad67c3b34

```
The QLabel changes to the pixmap/picture getters provide the following
migration path:

QPixmap *ppix = l->pixmap(); // up to 5.15, warns in 5.15
QPixmap pval = l->pixmap(Qt::ReturnByValue); // new in 5.15, works in 6
QPixmap pixmap = l->pixmap(); // from Qt 6 on
```

Since we can't require 5.15 yet in dolphin, the port is done only when
building with Qt >= 5.15
src/views/tooltips/dolphinfilemetadatawidget.cpp