comparison src/gui/dialog/settings/services.cpp @ 76:3364fadc8a36

*: format source code
author Paper <mrpapersonic@gmail.com>
date Wed, 04 Oct 2023 01:46:33 -0400
parents 5ccb99bfa605
children
comparison
equal deleted inserted replaced
75:d3e9310598b1 76:3364fadc8a36
3 #include "core/strings.h" 3 #include "core/strings.h"
4 #include "gui/dialog/settings.h" 4 #include "gui/dialog/settings.h"
5 #include "services/anilist.h" 5 #include "services/anilist.h"
6 #include <QComboBox> 6 #include <QComboBox>
7 #include <QGroupBox> 7 #include <QGroupBox>
8 #include <QLabel>
9 #include <QLineEdit>
8 #include <QPushButton> 10 #include <QPushButton>
9 #include <QSizePolicy> 11 #include <QSizePolicy>
10 #include <QVBoxLayout> 12 #include <QVBoxLayout>
11 #include <QLabel>
12 #include <QPushButton>
13 #include <QLineEdit>
14 13
15 QWidget* SettingsPageServices::CreateMainPage() { 14 QWidget* SettingsPageServices::CreateMainPage() {
16 QWidget* result = new QWidget(this); 15 QWidget* result = new QWidget(this);
17 result->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); 16 result->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
18 17
83 full_layout->addStretch(); 82 full_layout->addStretch();
84 return result; 83 return result;
85 } 84 }
86 85
87 void SettingsPageServices::SaveInfo() { 86 void SettingsPageServices::SaveInfo() {
88 // session.config.anilist.username = 87 // session.config.anilist.username =
89 Strings::ToUtf8String(username); 88 Strings::ToUtf8String(username);
90 session.config.service = service; 89 session.config.service = service;
91 } 90 }
92 91
93 SettingsPageServices::SettingsPageServices(QWidget* parent) : SettingsPage(parent, tr("Services")) { 92 SettingsPageServices::SettingsPageServices(QWidget* parent) : SettingsPage(parent, tr("Services")) {
94 username = QString::fromUtf8(session.config.anilist.username.c_str()); 93 username = QString::fromUtf8(session.config.anilist.username.c_str());