Mercurial > minori
diff src/gui/ui_utils.cpp @ 36:2743011a6042
*: mass update
formatted all source files, converted ALL instances of setStyleSheet() to
palettes and fonts (stylesheets suck), and I changed the clang-format file because
it wasn't working on my laptop for some reason.
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 21 Sep 2023 15:17:47 -0400 |
parents | cde8f67a7c7d |
children |
line wrap: on
line diff
--- a/src/gui/ui_utils.cpp Thu Sep 21 11:43:24 2023 -0400 +++ b/src/gui/ui_utils.cpp Thu Sep 21 15:17:47 2023 -0400 @@ -98,8 +98,7 @@ return paragraph; } -LabelledTextParagraph::LabelledTextParagraph(QString title, QString label, QString data, - QWidget* parent) +LabelledTextParagraph::LabelledTextParagraph(QString title, QString label, QString data, QWidget* parent) : QWidget(parent) { setLayout(new QVBoxLayout); @@ -149,8 +148,7 @@ return paragraph; } -SelectableTextParagraph::SelectableTextParagraph(QString title, QString data, QWidget* parent) - : QWidget(parent) { +SelectableTextParagraph::SelectableTextParagraph(QString title, QString data, QWidget* parent) : QWidget(parent) { setLayout(new QVBoxLayout); header = new Header(title, this); @@ -193,7 +191,11 @@ setFrameShape(QFrame::NoFrame); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); - setStyleSheet("background: transparent;"); + + QPalette pal; + pal.setColor(QPalette::Window, QColor(0, 0, 0, 0)); + setPalette(pal); + setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); }