Mercurial > minori
comparison src/gui/dialog/settings.cc @ 116:254b1d2b7096
settings: add torrents page, make rss feed configurable
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 07 Nov 2023 13:52:13 -0500 |
parents | 2004b41d4a59 |
children | 39521c47c7a3 |
comparison
equal
deleted
inserted
replaced
115:c72b907b9bef | 116:254b1d2b7096 |
---|---|
89 sidebar->setCurrentItem(sidebar->AddItem(tr("Services"), SideBar::CreateIcon(":/icons/24x24/globe.png"))); | 89 sidebar->setCurrentItem(sidebar->AddItem(tr("Services"), SideBar::CreateIcon(":/icons/24x24/globe.png"))); |
90 // sidebar->AddItem(tr("Library"), SideBar::CreateIcon(":/icons/24x24/inbox-film.png")); | 90 // sidebar->AddItem(tr("Library"), SideBar::CreateIcon(":/icons/24x24/inbox-film.png")); |
91 sidebar->AddItem(tr("Application"), SideBar::CreateIcon(":/icons/24x24/application-sidebar-list.png")); | 91 sidebar->AddItem(tr("Application"), SideBar::CreateIcon(":/icons/24x24/application-sidebar-list.png")); |
92 // sidebar->AddItem(tr("Recognition"), SideBar::CreateIcon(":/icons/24x24/question.png")); | 92 // sidebar->AddItem(tr("Recognition"), SideBar::CreateIcon(":/icons/24x24/question.png")); |
93 // sidebar->AddItem(tr("Sharing"), SideBar::CreateIcon(":/icons/24x24/megaphone.png")); | 93 // sidebar->AddItem(tr("Sharing"), SideBar::CreateIcon(":/icons/24x24/megaphone.png")); |
94 // sidebar->AddItem(tr("Torrents"), SideBar::CreateIcon(":/icons/24x24/feed.png")); | 94 sidebar->AddItem(tr("Torrents"), SideBar::CreateIcon(":/icons/24x24/feed.png")); |
95 // sidebar->AddItem(tr("Advanced"), SideBar::CreateIcon(":/icons/24x24/gear.png")); | 95 // sidebar->AddItem(tr("Advanced"), SideBar::CreateIcon(":/icons/24x24/gear.png")); |
96 | 96 |
97 sidebar->setIconSize(QSize(24, 24)); | 97 sidebar->setIconSize(QSize(24, 24)); |
98 sidebar->setFrameShape(QFrame::Box); | 98 sidebar->setFrameShape(QFrame::Box); |
99 | 99 |
107 | 107 |
108 { | 108 { |
109 stacked = new QStackedWidget(widget); | 109 stacked = new QStackedWidget(widget); |
110 stacked->addWidget(new SettingsPageServices(stacked)); | 110 stacked->addWidget(new SettingsPageServices(stacked)); |
111 stacked->addWidget(new SettingsPageApplication(stacked)); | 111 stacked->addWidget(new SettingsPageApplication(stacked)); |
112 stacked->addWidget(new SettingsPageTorrents(stacked)); | |
112 stacked->setCurrentIndex(0); | 113 stacked->setCurrentIndex(0); |
113 | 114 |
114 connect(sidebar, &QListWidget::currentRowChanged, stacked, &QStackedWidget::setCurrentIndex); | 115 connect(sidebar, &QListWidget::currentRowChanged, stacked, &QStackedWidget::setCurrentIndex); |
115 | 116 |
116 layout->addWidget(stacked); | 117 layout->addWidget(stacked); |