mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
20 lines
452 B
C++
20 lines
452 B
C++
#pragma once
|
|
|
|
#include <QScrollArea>
|
|
|
|
namespace chatterino {
|
|
namespace util {
|
|
|
|
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 util
|
|
} // namespace chatterino
|