comparison src/gui/widgets/text.cc @ 183:01d259b9c89f

pages/torrents.cc: parse feed descriptions separately services/anilist.cc: use constexpr STL string_view for HTTP queries
author Paper <mrpapersonic@gmail.com>
date Mon, 04 Dec 2023 13:40:42 -0500
parents 6d8da6e64d61
children 4d461ef7d424
comparison
equal deleted inserted replaced
182:c413e475f496 183:01d259b9c89f
12 QVBoxLayout* layout = new QVBoxLayout(this); 12 QVBoxLayout* layout = new QVBoxLayout(this);
13 setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); 13 setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
14 14
15 static_text_title = new QLabel(title, this); 15 static_text_title = new QLabel(title, this);
16 static_text_title->setTextFormat(Qt::PlainText); 16 static_text_title->setTextFormat(Qt::PlainText);
17 QFont font = static_text_title->font(); 17
18 font.setWeight(QFont::Bold); 18 {
19 static_text_title->setFont(font); 19 QFont font = static_text_title->font();
20 font.setWeight(QFont::Bold);
21 static_text_title->setFont(font);
22 }
20 23
21 static_text_line = new QFrame(this); 24 static_text_line = new QFrame(this);
22 static_text_line->setFrameShape(QFrame::HLine); 25 static_text_line->setFrameShape(QFrame::HLine);
23 static_text_line->setFrameShadow(QFrame::Sunken); 26 static_text_line->setFrameShadow(QFrame::Sunken);
24 static_text_line->setFixedHeight(2); 27 static_text_line->setFixedHeight(2);