Mercurial > minori
comparison src/gui/dialog/settings/services.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 | ff0061e75f0f |
| children | 657fda1b9cac |
comparison
equal
deleted
inserted
replaced
| 257:699a20c57dc8 | 258:862d0d8619f6 |
|---|---|
| 36 sync_combo_box->setCurrentIndex(static_cast<int>(service) - 1); | 36 sync_combo_box->setCurrentIndex(static_cast<int>(service) - 1); |
| 37 sync_layout->addWidget(sync_combo_box); | 37 sync_layout->addWidget(sync_combo_box); |
| 38 } | 38 } |
| 39 | 39 |
| 40 { | 40 { |
| 41 QLabel* sync_note_label = | 41 QLabel* sync_note_label = new QLabel( |
| 42 new QLabel(tr("Note: Minori is unable to synchronize multiple services at the same time."), sync_group_box); | 42 tr("Note: Minori is unable to synchronize multiple services at the same time."), sync_group_box); |
| 43 sync_layout->addWidget(sync_note_label); | 43 sync_layout->addWidget(sync_note_label); |
| 44 } | 44 } |
| 45 | 45 |
| 46 full_layout->addWidget(sync_group_box); | 46 full_layout->addWidget(sync_group_box); |
| 47 } | 47 } |
| 48 | 48 |
| 49 full_layout->setSpacing(10); | 49 full_layout->setSpacing(10); |
| 50 full_layout->addStretch(); | 50 full_layout->addStretch(); |
| 51 | 51 |
| 52 return result; | 52 return result; |
| 53 } | 53 } |
| 71 QHBoxLayout* auth_layout = new QHBoxLayout(auth_widget); | 71 QHBoxLayout* auth_layout = new QHBoxLayout(auth_widget); |
| 72 | 72 |
| 73 { | 73 { |
| 74 QPushButton* auth_button = new QPushButton(auth_widget); | 74 QPushButton* auth_button = new QPushButton(auth_widget); |
| 75 connect(auth_button, &QPushButton::clicked, this, [] { Services::AniList::AuthorizeUser(); }); | 75 connect(auth_button, &QPushButton::clicked, this, [] { Services::AniList::AuthorizeUser(); }); |
| 76 auth_button->setText(session.config.auth.anilist.auth_token.empty() ? tr("Authorize...") : tr("Re-authorize...")); | 76 auth_button->setText(session.config.auth.anilist.auth_token.empty() ? tr("Authorize...") |
| 77 : tr("Re-authorize...")); | |
| 77 auth_layout->addWidget(auth_button); | 78 auth_layout->addWidget(auth_button); |
| 78 } | 79 } |
| 79 | 80 |
| 80 layout->addWidget(auth_widget); | 81 layout->addWidget(auth_widget); |
| 81 } | 82 } |
| 82 | 83 |
| 83 { | 84 { |
| 84 /* Note on creating new accounts... */ | 85 /* Note on creating new accounts... */ |
| 85 QLabel* note_label = new QLabel(tr("<a href=\"http://anilist.co/\">Create a new AniList account</a>"), group_box); | 86 QLabel* note_label = |
| 87 new QLabel(tr("<a href=\"http://anilist.co/\">Create a new AniList account</a>"), group_box); | |
| 86 note_label->setTextFormat(Qt::RichText); | 88 note_label->setTextFormat(Qt::RichText); |
| 87 note_label->setTextInteractionFlags(Qt::TextBrowserInteraction); | 89 note_label->setTextInteractionFlags(Qt::TextBrowserInteraction); |
| 88 note_label->setOpenExternalLinks(true); | 90 note_label->setOpenExternalLinks(true); |
| 89 layout->addWidget(note_label); | 91 layout->addWidget(note_label); |
| 90 } | 92 } |
| 91 | 93 |
| 92 full_layout->addWidget(group_box); | 94 full_layout->addWidget(group_box); |
| 93 } | 95 } |
| 94 | 96 |
| 95 full_layout->setSpacing(10); | 97 full_layout->setSpacing(10); |
| 96 full_layout->addStretch(); | 98 full_layout->addStretch(); |
