mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
19 lines
412 B
C++
19 lines
412 B
C++
|
#pragma once
|
||
|
|
||
|
#include <QScrollArea>
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
static void removeScrollAreaBackground(QScrollArea *scrollArea, QWidget *childWidget)
|
||
|
{
|
||
|
scrollArea->setWidgetResizable(true);
|
||
|
scrollArea->setFrameStyle(0);
|
||
|
|
||
|
QPalette p;
|
||
|
p.setColor(QPalette::Background, QColor(0, 0, 0, 0));
|
||
|
scrollArea->setPalette(p);
|
||
|
childWidget->setPalette(p);
|
||
|
}
|
||
|
|
||
|
} // namespace chatterino
|