Mercurial > minori
comparison src/gui/dialog/settings.cc @ 119:4eae379cb1ff
settings: add a very early recognition tab for configuring players and extensions
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 08 Nov 2023 13:50:00 -0500 |
parents | 39521c47c7a3 |
children | f784b5b1914c |
comparison
equal
deleted
inserted
replaced
118:39521c47c7a3 | 119:4eae379cb1ff |
---|---|
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")); |
97 | 97 |
98 sidebar->setIconSize(QSize(24, 24)); | 98 sidebar->setIconSize(QSize(24, 24)); |
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 SettingsPageApplication(stacked)); | 112 stacked->addWidget(new SettingsPageApplication(stacked)); |
113 stacked->addWidget(new SettingsPageRecognition(stacked)); | |
113 stacked->addWidget(new SettingsPageTorrents(stacked)); | 114 stacked->addWidget(new SettingsPageTorrents(stacked)); |
114 stacked->setCurrentIndex(0); | 115 stacked->setCurrentIndex(0); |
115 | 116 |
116 connect(sidebar, &QListWidget::currentRowChanged, stacked, &QStackedWidget::setCurrentIndex); | 117 connect(sidebar, &QListWidget::currentRowChanged, stacked, &QStackedWidget::setCurrentIndex); |
117 | 118 |