mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
parent
5b7ea0e611
commit
c48407e038
4 changed files with 14 additions and 2 deletions
|
@ -503,7 +503,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, GuiIconProvider::instance()->getIcon("application-rss+xml"));
|
||||
}
|
||||
}
|
||||
|
@ -513,6 +514,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue