Mercurial > minori
comparison src/gui/widgets/text.cc @ 258:862d0d8619f6
*: HUUUGE changes
animia has been renamed to animone, so instead of thinking of a
health condition, you think of a beautiful flower :)
I've also edited some of the code for animone, but I have no idea
if it even works or not because I don't have a mac or windows
machine lying around. whoops!
... anyway, all of the changes divergent from Anisthesia are now
licensed under BSD. it's possible that I could even rewrite most
of the code to where I don't even have to keep the MIT license,
but that's thinking too far into the future
I've been slacking off on implementing the anime seasons page,
mostly out of laziness. I think I'd have to create another db file
specifically for the seasons
anyway, this code is being pushed *primarily* because the hard drive
it's on is failing! yay :)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 01 Apr 2024 02:43:44 -0400 |
parents | b3549da699a6 |
children | 9a88e1725fd2 |
comparison
equal
deleted
inserted
replaced
257:699a20c57dc8 | 258:862d0d8619f6 |
---|---|
40 | 40 |
41 /* for now, this is a QLabel with a couple of default settings. | 41 /* for now, this is a QLabel with a couple of default settings. |
42 * | 42 * |
43 * eventually I'll have to implement this as a QScrollArea, just in case | 43 * eventually I'll have to implement this as a QScrollArea, just in case |
44 * some random text decides to overflow or something. | 44 * some random text decides to overflow or something. |
45 */ | 45 */ |
46 Paragraph::Paragraph(const QString& text, QWidget* parent) : QLabel(text, parent) { | 46 Paragraph::Paragraph(const QString& text, QWidget* parent) : QLabel(text, parent) { |
47 setTextInteractionFlags(Qt::TextBrowserInteraction); | 47 setTextInteractionFlags(Qt::TextBrowserInteraction); |
48 setFrameShape(QFrame::NoFrame); | 48 setFrameShape(QFrame::NoFrame); |
49 setCursor(Qt::IBeamCursor); /* emulate Taiga */ | 49 setCursor(Qt::IBeamCursor); /* emulate Taiga */ |
50 setWordWrap(true); | 50 setWordWrap(true); |
140 | 140 |
141 Paragraph* LabelledParagraph::GetParagraph() { | 141 Paragraph* LabelledParagraph::GetParagraph() { |
142 return paragraph; | 142 return paragraph; |
143 } | 143 } |
144 | 144 |
145 LabelledSection::LabelledSection(const QString& title, const QString& label, const QString& data, QWidget* parent) : QWidget(parent) { | 145 LabelledSection::LabelledSection(const QString& title, const QString& label, const QString& data, QWidget* parent) |
146 : QWidget(parent) { | |
146 QVBoxLayout* layout = new QVBoxLayout(this); | 147 QVBoxLayout* layout = new QVBoxLayout(this); |
147 | 148 |
148 header = new Header(title, this); | 149 header = new Header(title, this); |
149 | 150 |
150 // this is not accessible from the object because there's really | 151 // this is not accessible from the object because there's really |