Replaced deprecated QPalette::foreground by QPalette::windowText and QPalette::background by QPalette::window

This commit is contained in:
thunder2 2025-07-21 18:57:25 +02:00
parent 484d220b04
commit 88230fd9bd
4 changed files with 7 additions and 7 deletions

View file

@ -645,7 +645,7 @@ void FlowLayout::performDrag()
if (curs==0) dragPixmap = itemPixmap;
QPixmap oldPixmap = dragPixmap;
if (curs!=0) dragPixmap = QPixmap(oldPixmap.width() + 20 , oldPixmap.height());
dragPixmap.fill(widget->palette().background().color());
dragPixmap.fill(widget->palette().window().color());
QPainter painter(&dragPixmap);
painter.drawPixmap(0, 0, oldPixmap);
if (curs!=0) painter.drawPixmap((20 * curs), 0, itemPixmap);