mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
committed by
sledgehammer999
parent
7729035598
commit
64cf3afe67
@@ -514,7 +514,8 @@ void MainWindow::displayRSSTab(bool enable)
|
||||
// RSS tab
|
||||
if (!rssWidget) {
|
||||
rssWidget = new RSSImp(tabs);
|
||||
int index_tab = tabs->addTab(rssWidget, tr("RSS"));
|
||||
connect(rssWidget, SIGNAL(updateRSSCount(int)), this, SLOT(updateRSSTabLabel(int)));
|
||||
int index_tab = tabs->addTab(rssWidget, tr("RSS (%1)").arg(0));
|
||||
tabs->setTabIcon(index_tab, IconProvider::instance()->getIcon("application-rss+xml"));
|
||||
}
|
||||
}
|
||||
@@ -524,6 +525,11 @@ void MainWindow::displayRSSTab(bool enable)
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::updateRSSTabLabel(int count)
|
||||
{
|
||||
tabs->setTabText(tabs->indexOf(rssWidget), tr("RSS (%1)").arg(count));
|
||||
}
|
||||
|
||||
void MainWindow::displaySearchTab(bool enable)
|
||||
{
|
||||
Preferences::instance()->setSearchEnabled(enable);
|
||||
|
||||
Reference in New Issue
Block a user