comparison src/gui/widgets/text.cc @ 86:c912128af0eb

*: various macos fixes todo: push that bsd thing to upstream
author Paper <mrpapersonic@gmail.com>
date Tue, 31 Oct 2023 13:52:36 -0400
parents d02fdf1d6708
children 4aef97f4d998
comparison
equal deleted inserted replaced
85:c69230dc2b5d 86:c912128af0eb
40 setFrameShape(QFrame::NoFrame); 40 setFrameShape(QFrame::NoFrame);
41 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); 41 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
42 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); 42 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
43 43
44 QPalette pal; 44 QPalette pal;
45 pal.setColor(QPalette::Window, Qt::transparent); 45 pal.setColor(QPalette::Base, Qt::transparent);
46 setPalette(pal); 46 setPalette(pal);
47 47
48 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); 48 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
49 } 49 }
50 50
77 Line::Line(QWidget* parent) : QLineEdit(parent) { 77 Line::Line(QWidget* parent) : QLineEdit(parent) {
78 setFrame(false); 78 setFrame(false);
79 setReadOnly(true); 79 setReadOnly(true);
80 80
81 QPalette pal; 81 QPalette pal;
82 pal.setColor(QPalette::Window, Qt::transparent); 82 pal.setColor(QPalette::Base, Qt::transparent);
83 setPalette(pal); 83 setPalette(pal);
84 84
85 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); 85 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
86 } 86 }
87 87
98 QFont fnt(font()); 98 QFont fnt(font());
99 fnt.setPixelSize(16); 99 fnt.setPixelSize(16);
100 setFont(fnt); 100 setFont(fnt);
101 101
102 QPalette pal(palette()); 102 QPalette pal(palette());
103 pal.setColor(QPalette::Window, Qt::transparent); 103 pal.setColor(QPalette::Text, Qt::blue);
104 pal.setColor(QPalette::Text, QColor(0x00, 0x33, 0x99));
105 setPalette(pal); 104 setPalette(pal);
106 } 105 }
107 106
108 Section::Section(const QString& title, const QString& data, QWidget* parent) : QWidget(parent) { 107 Section::Section(const QString& title, const QString& data, QWidget* parent) : QWidget(parent) {
109 QVBoxLayout* layout = new QVBoxLayout(this); 108 QVBoxLayout* layout = new QVBoxLayout(this);