Mercurial > minori
comparison src/gui/dialog/information.cc @ 118:39521c47c7a3
*: another huge megacommit, SORRY
The torrents page works a lot better now
Added the edit option to the anime list right click menu
Vectorized currently playing files
Available player and extensions are now loaded at runtime
from files in (dotpath)/players.json and (dotpath)/extensions.json
These paths are not permanent and will likely be moved to
(dotpath)/recognition
...
...
...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 07 Nov 2023 23:40:54 -0500 |
parents | 2004b41d4a59 |
children | 4d461ef7d424 |
comparison
equal
deleted
inserted
replaced
117:2c1b6782e1d0 | 118:39521c47c7a3 |
---|---|
37 anime.SetUserNotes(_notes); | 37 anime.SetUserNotes(_notes); |
38 anime.SetUserDateStarted(_started); | 38 anime.SetUserDateStarted(_started); |
39 anime.SetUserDateCompleted(_completed); | 39 anime.SetUserDateCompleted(_completed); |
40 } | 40 } |
41 | 41 |
42 InformationDialog::InformationDialog(Anime::Anime& anime, std::function<void()> accept, QWidget* parent) | 42 InformationDialog::InformationDialog(Anime::Anime& anime, std::function<void()> accept, enum Pages page, QWidget* parent) |
43 : QDialog(parent) { | 43 : QDialog(parent) { |
44 /* ack. lots of brackets here, but MUCH, MUCH MUCH better than what it used to be */ | 44 /* ack. lots of brackets here, but MUCH, MUCH MUCH better than what it used to be */ |
45 setFixedSize(842, 613); | 45 setFixedSize(842, 613); |
46 setWindowTitle(tr("Anime Information")); | 46 setWindowTitle(tr("Anime Information")); |
47 setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); | 47 setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); |
274 | 274 |
275 settings_layout->addStretch(); | 275 settings_layout->addStretch(); |
276 | 276 |
277 tabbed_widget->addTab(settings_widget, tr("My list and settings")); | 277 tabbed_widget->addTab(settings_widget, tr("My list and settings")); |
278 } | 278 } |
279 tabbed_widget->setCurrentIndex(static_cast<int>(page)); | |
279 main_layout->addWidget(tabbed_widget); | 280 main_layout->addWidget(tabbed_widget); |
280 main_layout->setContentsMargins(0, 0, 0, 0); | 281 main_layout->setContentsMargins(0, 0, 0, 0); |
281 main_layout->setSpacing(12); | 282 main_layout->setSpacing(12); |
282 } | 283 } |
283 | 284 |