Mercurial > minori
comparison src/gui/dialog/about.cpp @ 64:fe719c109dbc
*: update
1. add media tracking ability, and it displays info on the `now playing` page
2. the `now playing` page now actually shows something
3. renamed every page class to be more accurate to what it is
4. ...
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 01 Oct 2023 23:15:43 -0400 |
| parents | 3d2decf093bb |
| children | 5ccb99bfa605 |
comparison
equal
deleted
inserted
replaced
| 63:3d2decf093bb | 64:fe719c109dbc |
|---|---|
| 60 } | 60 } |
| 61 | 61 |
| 62 AboutWindow::AboutWindow(QWidget* parent) : QDialog(parent) { | 62 AboutWindow::AboutWindow(QWidget* parent) : QDialog(parent) { |
| 63 setWindowTitle(tr("About Minori")); | 63 setWindowTitle(tr("About Minori")); |
| 64 setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); | 64 setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); |
| 65 setLayout(new QHBoxLayout); | 65 QHBoxLayout* layout = new QHBoxLayout(this); |
| 66 | 66 |
| 67 QPalette pal = QPalette(); | 67 QPalette pal = QPalette(); |
| 68 pal.setColor(QPalette::Window, pal.color(QPalette::Base)); | 68 pal.setColor(QPalette::Window, pal.color(QPalette::Base)); |
| 69 setPalette(pal); | 69 setPalette(pal); |
| 70 setAutoFillBackground(true); | 70 setAutoFillBackground(true); |
| 125 cursor.insertBlock(); | 125 cursor.insertBlock(); |
| 126 SET_FONT_BOLD(font, format, cursor); | 126 SET_FONT_BOLD(font, format, cursor); |
| 127 cursor.insertText(tr("Links:")); | 127 cursor.insertText(tr("Links:")); |
| 128 UNSET_FONT_BOLD(font, format, cursor); | 128 UNSET_FONT_BOLD(font, format, cursor); |
| 129 cursor.insertBlock(); | 129 cursor.insertBlock(); |
| 130 layout()->addWidget(paragraph); | 130 layout->addWidget(paragraph); |
| 131 } | 131 } |
