comparison src/gui/dialog/settings.cc @ 226:f784b5b1914c

settings: add library page
author Paper <mrpapersonic@gmail.com>
date Mon, 08 Jan 2024 21:23:00 -0500
parents 4eae379cb1ff
children 4d461ef7d424
comparison
equal deleted inserted replaced
225:56ea2bdc6724 226:f784b5b1914c
86 86
87 { 87 {
88 sidebar = new SideBar(widget); 88 sidebar = new SideBar(widget);
89 89
90 sidebar->setCurrentItem(sidebar->AddItem(tr("Services"), SideBar::CreateIcon(":/icons/24x24/globe.png"))); 90 sidebar->setCurrentItem(sidebar->AddItem(tr("Services"), SideBar::CreateIcon(":/icons/24x24/globe.png")));
91 // sidebar->AddItem(tr("Library"), SideBar::CreateIcon(":/icons/24x24/inbox-film.png")); 91 sidebar->AddItem(tr("Library"), SideBar::CreateIcon(":/icons/24x24/inbox-film.png"));
92 sidebar->AddItem(tr("Application"), SideBar::CreateIcon(":/icons/24x24/application-sidebar-list.png")); 92 sidebar->AddItem(tr("Application"), SideBar::CreateIcon(":/icons/24x24/application-sidebar-list.png"));
93 sidebar->AddItem(tr("Recognition"), SideBar::CreateIcon(":/icons/24x24/question.png")); 93 sidebar->AddItem(tr("Recognition"), SideBar::CreateIcon(":/icons/24x24/question.png"));
94 // sidebar->AddItem(tr("Sharing"), SideBar::CreateIcon(":/icons/24x24/megaphone.png")); 94 // sidebar->AddItem(tr("Sharing"), SideBar::CreateIcon(":/icons/24x24/megaphone.png"));
95 sidebar->AddItem(tr("Torrents"), SideBar::CreateIcon(":/icons/24x24/feed.png")); 95 sidebar->AddItem(tr("Torrents"), SideBar::CreateIcon(":/icons/24x24/feed.png"));
96 // sidebar->AddItem(tr("Advanced"), SideBar::CreateIcon(":/icons/24x24/gear.png")); 96 // sidebar->AddItem(tr("Advanced"), SideBar::CreateIcon(":/icons/24x24/gear.png"));
107 } 107 }
108 108
109 { 109 {
110 stacked = new QStackedWidget(widget); 110 stacked = new QStackedWidget(widget);
111 stacked->addWidget(new SettingsPageServices(stacked)); 111 stacked->addWidget(new SettingsPageServices(stacked));
112 stacked->addWidget(new SettingsPageLibrary(stacked));
112 stacked->addWidget(new SettingsPageApplication(stacked)); 113 stacked->addWidget(new SettingsPageApplication(stacked));
113 stacked->addWidget(new SettingsPageRecognition(stacked)); 114 stacked->addWidget(new SettingsPageRecognition(stacked));
114 stacked->addWidget(new SettingsPageTorrents(stacked)); 115 stacked->addWidget(new SettingsPageTorrents(stacked));
115 stacked->setCurrentIndex(0); 116 stacked->setCurrentIndex(0);
116 117