Fixed deprecated method QPalette::{Fore,Back}ground (#2510)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Paweł
2021-03-13 16:03:16 +01:00
committed by GitHub
parent 8a4ffc5f5b
commit be21e5b52d
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ static void removeScrollAreaBackground(QScrollArea *scrollArea,
scrollArea->setFrameStyle(0);
QPalette p;
p.setColor(QPalette::Background, QColor(0, 0, 0, 0));
p.setColor(QPalette::Window, QColor(0, 0, 0, 0));
scrollArea->setPalette(p);
childWidget->setPalette(p);
}