mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 21:14:33 +00:00
Add RSS/Log widgets to the QTabWidget on macOS
Fixes commit a468c84b304bdcea985989ca987bda391e3ccaad
This commit is contained in:
parent
8f7fda492c
commit
90bb67c654
@ -679,7 +679,9 @@ void MainWindow::displayRSSTab(bool enable)
|
|||||||
if (!m_rssWidget) {
|
if (!m_rssWidget) {
|
||||||
m_rssWidget = new RSSWidget(m_tabs);
|
m_rssWidget = new RSSWidget(m_tabs);
|
||||||
connect(m_rssWidget.data(), &RSSWidget::unreadCountUpdated, this, &MainWindow::handleRSSUnreadCountUpdated);
|
connect(m_rssWidget.data(), &RSSWidget::unreadCountUpdated, this, &MainWindow::handleRSSUnreadCountUpdated);
|
||||||
#ifndef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
m_tabs->addTab(m_rssWidget, tr("RSS (%1)").arg(RSS::Session::instance()->rootFolder()->unreadCount()));
|
||||||
|
#else
|
||||||
const int indexTab = m_tabs->addTab(m_rssWidget, tr("RSS (%1)").arg(RSS::Session::instance()->rootFolder()->unreadCount()));
|
const int indexTab = m_tabs->addTab(m_rssWidget, tr("RSS (%1)").arg(RSS::Session::instance()->rootFolder()->unreadCount()));
|
||||||
m_tabs->setTabIcon(indexTab, GuiIconProvider::instance()->getIcon("application-rss+xml"));
|
m_tabs->setTabIcon(indexTab, GuiIconProvider::instance()->getIcon("application-rss+xml"));
|
||||||
#endif
|
#endif
|
||||||
@ -1879,7 +1881,9 @@ void MainWindow::on_actionExecutionLogs_triggered(bool checked)
|
|||||||
if (checked) {
|
if (checked) {
|
||||||
Q_ASSERT(!m_executionLog);
|
Q_ASSERT(!m_executionLog);
|
||||||
m_executionLog = new ExecutionLog(m_tabs, static_cast<Log::MsgType>(executionLogMsgTypes()));
|
m_executionLog = new ExecutionLog(m_tabs, static_cast<Log::MsgType>(executionLogMsgTypes()));
|
||||||
#ifndef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
m_tabs->addTab(m_executionLog, tr("Execution Log"));
|
||||||
|
#else
|
||||||
const int indexTab = m_tabs->addTab(m_executionLog, tr("Execution Log"));
|
const int indexTab = m_tabs->addTab(m_executionLog, tr("Execution Log"));
|
||||||
m_tabs->setTabIcon(indexTab, GuiIconProvider::instance()->getIcon("view-calendar-journal"));
|
m_tabs->setTabIcon(indexTab, GuiIconProvider::instance()->getIcon("view-calendar-journal"));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user