mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 18:04:32 +00:00
Remove unused parameter
This commit is contained in:
parent
54252184ab
commit
44c8d60a70
@ -661,7 +661,7 @@ void AddNewTorrentDialog::populateSavePaths()
|
|||||||
m_ui->groupBoxDownloadPath->blockSignals(false);
|
m_ui->groupBoxDownloadPath->blockSignals(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddNewTorrentDialog::displayContentTreeMenu(const QPoint &)
|
void AddNewTorrentDialog::displayContentTreeMenu()
|
||||||
{
|
{
|
||||||
const QModelIndexList selectedRows = m_ui->contentTreeView->selectionModel()->selectedRows(0);
|
const QModelIndexList selectedRows = m_ui->contentTreeView->selectionModel()->selectedRows(0);
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ public:
|
|||||||
static void show(const QString &source, QWidget *parent);
|
static void show(const QString &source, QWidget *parent);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void displayContentTreeMenu(const QPoint &);
|
void displayContentTreeMenu();
|
||||||
void displayColumnHeaderMenu();
|
void displayColumnHeaderMenu();
|
||||||
void updateDiskSpaceLabel();
|
void updateDiskSpaceLabel();
|
||||||
void onSavePathChanged(const QString &newPath);
|
void onSavePathChanged(const QString &newPath);
|
||||||
|
@ -104,7 +104,7 @@ void CategoryFilterWidget::onCurrentRowChanged(const QModelIndex ¤t, const
|
|||||||
emit categoryChanged(getCategoryFilter(static_cast<CategoryFilterProxyModel *>(model()), current));
|
emit categoryChanged(getCategoryFilter(static_cast<CategoryFilterProxyModel *>(model()), current));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CategoryFilterWidget::showMenu(const QPoint &)
|
void CategoryFilterWidget::showMenu()
|
||||||
{
|
{
|
||||||
QMenu *menu = new QMenu(this);
|
QMenu *menu = new QMenu(this);
|
||||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
@ -48,7 +48,7 @@ signals:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onCurrentRowChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
void onCurrentRowChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
||||||
void showMenu(const QPoint &);
|
void showMenu();
|
||||||
void callUpdateGeometry();
|
void callUpdateGeometry();
|
||||||
void addCategory();
|
void addCategory();
|
||||||
void addSubcategory();
|
void addSubcategory();
|
||||||
|
@ -50,18 +50,18 @@ ExecutionLogWidget::ExecutionLogWidget(const Log::MsgTypes types, QWidget *paren
|
|||||||
LogListView *messageView = new LogListView(this);
|
LogListView *messageView = new LogListView(this);
|
||||||
messageView->setModel(m_messageFilterModel);
|
messageView->setModel(m_messageFilterModel);
|
||||||
messageView->setContextMenuPolicy(Qt::CustomContextMenu);
|
messageView->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
connect(messageView, &LogListView::customContextMenuRequested, this, [this, messageView, messageModel](const QPoint &pos)
|
connect(messageView, &LogListView::customContextMenuRequested, this, [this, messageView, messageModel]()
|
||||||
{
|
{
|
||||||
displayContextMenu(pos, messageView, messageModel);
|
displayContextMenu(messageView, messageModel);
|
||||||
});
|
});
|
||||||
|
|
||||||
LogPeerModel *peerModel = new LogPeerModel(this);
|
LogPeerModel *peerModel = new LogPeerModel(this);
|
||||||
LogListView *peerView = new LogListView(this);
|
LogListView *peerView = new LogListView(this);
|
||||||
peerView->setModel(peerModel);
|
peerView->setModel(peerModel);
|
||||||
peerView->setContextMenuPolicy(Qt::CustomContextMenu);
|
peerView->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
connect(peerView, &LogListView::customContextMenuRequested, this, [this, peerView, peerModel](const QPoint &pos)
|
connect(peerView, &LogListView::customContextMenuRequested, this, [this, peerView, peerModel]()
|
||||||
{
|
{
|
||||||
displayContextMenu(pos, peerView, peerModel);
|
displayContextMenu(peerView, peerModel);
|
||||||
});
|
});
|
||||||
|
|
||||||
m_ui->tabGeneral->layout()->addWidget(messageView);
|
m_ui->tabGeneral->layout()->addWidget(messageView);
|
||||||
@ -83,7 +83,7 @@ void ExecutionLogWidget::setMessageTypes(const Log::MsgTypes types)
|
|||||||
m_messageFilterModel->setMessageTypes(types);
|
m_messageFilterModel->setMessageTypes(types);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExecutionLogWidget::displayContextMenu(const QPoint &pos, const LogListView *view, const BaseLogModel *model) const
|
void ExecutionLogWidget::displayContextMenu(const LogListView *view, const BaseLogModel *model) const
|
||||||
{
|
{
|
||||||
QMenu *menu = new QMenu;
|
QMenu *menu = new QMenu;
|
||||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
@ -98,5 +98,5 @@ void ExecutionLogWidget::displayContextMenu(const QPoint &pos, const LogListView
|
|||||||
menu->addAction(UIThemeManager::instance()->getIcon("edit-clear"), tr("Clear")
|
menu->addAction(UIThemeManager::instance()->getIcon("edit-clear"), tr("Clear")
|
||||||
, model, &BaseLogModel::reset);
|
, model, &BaseLogModel::reset);
|
||||||
|
|
||||||
menu->popup(view->mapToGlobal(pos));
|
menu->popup(QCursor::pos());
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ public:
|
|||||||
void setMessageTypes(Log::MsgTypes types);
|
void setMessageTypes(Log::MsgTypes types);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void displayContextMenu(const QPoint &pos, const LogListView *view, const BaseLogModel *model) const;
|
void displayContextMenu(const LogListView *view, const BaseLogModel *model) const;
|
||||||
|
|
||||||
Ui::ExecutionLogWidget *m_ui;
|
Ui::ExecutionLogWidget *m_ui;
|
||||||
LogFilterModel *m_messageFilterModel;
|
LogFilterModel *m_messageFilterModel;
|
||||||
|
@ -602,9 +602,9 @@ void MainWindow::manageCookies()
|
|||||||
cookieDialog->open();
|
cookieDialog->open();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::toolbarMenuRequested(const QPoint &point)
|
void MainWindow::toolbarMenuRequested()
|
||||||
{
|
{
|
||||||
m_toolbarMenu->popup(m_ui->toolBar->mapToGlobal(point));
|
m_toolbarMenu->popup(QCursor::pos());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::toolbarIconsOnly()
|
void MainWindow::toolbarIconsOnly()
|
||||||
@ -709,7 +709,7 @@ void MainWindow::displayRSSTab(bool enable)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::showFilterContextMenu(const QPoint &)
|
void MainWindow::showFilterContextMenu()
|
||||||
{
|
{
|
||||||
const Preferences *pref = Preferences::instance();
|
const Preferences *pref = Preferences::instance();
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ signals:
|
|||||||
void systemTrayIconCreated();
|
void systemTrayIconCreated();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void showFilterContextMenu(const QPoint &);
|
void showFilterContextMenu();
|
||||||
void balloonClicked();
|
void balloonClicked();
|
||||||
void writeSettings();
|
void writeSettings();
|
||||||
void readSettings();
|
void readSettings();
|
||||||
@ -181,7 +181,7 @@ private slots:
|
|||||||
// Check for unpaused downloading or seeding torrents and prevent system suspend/sleep according to preferences
|
// Check for unpaused downloading or seeding torrents and prevent system suspend/sleep according to preferences
|
||||||
void updatePowerManagementState();
|
void updatePowerManagementState();
|
||||||
|
|
||||||
void toolbarMenuRequested(const QPoint &point);
|
void toolbarMenuRequested();
|
||||||
void toolbarIconsOnly();
|
void toolbarIconsOnly();
|
||||||
void toolbarTextOnly();
|
void toolbarTextOnly();
|
||||||
void toolbarTextBeside();
|
void toolbarTextBeside();
|
||||||
|
@ -259,7 +259,7 @@ void PeerListWidget::updatePeerCountryResolutionState()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PeerListWidget::showPeerListMenu(const QPoint &)
|
void PeerListWidget::showPeerListMenu()
|
||||||
{
|
{
|
||||||
BitTorrent::Torrent *torrent = m_properties->getCurrentTorrent();
|
BitTorrent::Torrent *torrent = m_properties->getCurrentTorrent();
|
||||||
if (!torrent) return;
|
if (!torrent) return;
|
||||||
|
@ -89,7 +89,7 @@ private slots:
|
|||||||
void loadSettings();
|
void loadSettings();
|
||||||
void saveSettings() const;
|
void saveSettings() const;
|
||||||
void displayColumnHeaderMenu();
|
void displayColumnHeaderMenu();
|
||||||
void showPeerListMenu(const QPoint &);
|
void showPeerListMenu();
|
||||||
void banSelectedPeers();
|
void banSelectedPeers();
|
||||||
void copySelectedPeers();
|
void copySelectedPeers();
|
||||||
void handleSortColumnChanged(int col);
|
void handleSortColumnChanged(int col);
|
||||||
|
@ -635,7 +635,7 @@ void PropertiesWidget::openParentFolder(const QModelIndex &index) const
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void PropertiesWidget::displayFilesListMenu(const QPoint &)
|
void PropertiesWidget::displayFilesListMenu()
|
||||||
{
|
{
|
||||||
if (!m_torrent) return;
|
if (!m_torrent) return;
|
||||||
|
|
||||||
@ -742,7 +742,7 @@ void PropertiesWidget::displayFilesListMenu(const QPoint &)
|
|||||||
menu->popup(QCursor::pos());
|
menu->popup(QCursor::pos());
|
||||||
}
|
}
|
||||||
|
|
||||||
void PropertiesWidget::displayWebSeedListMenu(const QPoint &)
|
void PropertiesWidget::displayWebSeedListMenu()
|
||||||
{
|
{
|
||||||
if (!m_torrent) return;
|
if (!m_torrent) return;
|
||||||
|
|
||||||
|
@ -91,8 +91,8 @@ protected slots:
|
|||||||
void deleteSelectedUrlSeeds();
|
void deleteSelectedUrlSeeds();
|
||||||
void copySelectedWebSeedsToClipboard() const;
|
void copySelectedWebSeedsToClipboard() const;
|
||||||
void editWebSeed();
|
void editWebSeed();
|
||||||
void displayFilesListMenu(const QPoint &);
|
void displayFilesListMenu();
|
||||||
void displayWebSeedListMenu(const QPoint &);
|
void displayWebSeedListMenu();
|
||||||
void filteredFilesChanged();
|
void filteredFilesChanged();
|
||||||
void showPiecesDownloaded(bool show);
|
void showPiecesDownloaded(bool show);
|
||||||
void showPiecesAvailability(bool show);
|
void showPiecesAvailability(bool show);
|
||||||
|
@ -575,7 +575,7 @@ void TrackerListWidget::reannounceSelected()
|
|||||||
loadTrackers();
|
loadTrackers();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrackerListWidget::showTrackerListMenu(const QPoint &)
|
void TrackerListWidget::showTrackerListMenu()
|
||||||
{
|
{
|
||||||
BitTorrent::Torrent *const torrent = m_properties->getCurrentTorrent();
|
BitTorrent::Torrent *const torrent = m_properties->getCurrentTorrent();
|
||||||
if (!torrent) return;
|
if (!torrent) return;
|
||||||
|
@ -75,7 +75,7 @@ public slots:
|
|||||||
void reannounceSelected();
|
void reannounceSelected();
|
||||||
void deleteSelectedTrackers();
|
void deleteSelectedTrackers();
|
||||||
void editSelectedTracker();
|
void editSelectedTracker();
|
||||||
void showTrackerListMenu(const QPoint &);
|
void showTrackerListMenu();
|
||||||
void loadSettings();
|
void loadSettings();
|
||||||
void saveSettings() const;
|
void saveSettings() const;
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ void RSSWidget::displayRSSListMenu(const QPoint &pos)
|
|||||||
menu->popup(QCursor::pos());
|
menu->popup(QCursor::pos());
|
||||||
}
|
}
|
||||||
|
|
||||||
void RSSWidget::displayItemsListMenu(const QPoint &)
|
void RSSWidget::displayItemsListMenu()
|
||||||
{
|
{
|
||||||
bool hasTorrent = false;
|
bool hasTorrent = false;
|
||||||
bool hasLink = false;
|
bool hasLink = false;
|
||||||
|
@ -62,8 +62,8 @@ private slots:
|
|||||||
void on_newFeedButton_clicked();
|
void on_newFeedButton_clicked();
|
||||||
void refreshAllFeeds();
|
void refreshAllFeeds();
|
||||||
void on_markReadButton_clicked();
|
void on_markReadButton_clicked();
|
||||||
void displayRSSListMenu(const QPoint &);
|
void displayRSSListMenu(const QPoint &pos);
|
||||||
void displayItemsListMenu(const QPoint &);
|
void displayItemsListMenu();
|
||||||
void renameSelectedRSSItem();
|
void renameSelectedRSSItem();
|
||||||
void refreshSelectedItems();
|
void refreshSelectedItems();
|
||||||
void copySelectedFeedsURL();
|
void copySelectedFeedsURL();
|
||||||
|
@ -174,7 +174,7 @@ void PluginSelectDialog::togglePluginState(QTreeWidgetItem *item, int)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PluginSelectDialog::displayContextMenu(const QPoint &)
|
void PluginSelectDialog::displayContextMenu()
|
||||||
{
|
{
|
||||||
// Enable/disable pause/start action given the DL state
|
// Enable/disable pause/start action given the DL state
|
||||||
const QList<QTreeWidgetItem *> items = m_ui->pluginsTree->selectedItems();
|
const QList<QTreeWidgetItem *> items = m_ui->pluginsTree->selectedItems();
|
||||||
|
@ -71,7 +71,7 @@ private slots:
|
|||||||
void on_closeButton_clicked();
|
void on_closeButton_clicked();
|
||||||
void togglePluginState(QTreeWidgetItem*, int);
|
void togglePluginState(QTreeWidgetItem*, int);
|
||||||
void setRowColor(int row, const QString &color);
|
void setRowColor(int row, const QString &color);
|
||||||
void displayContextMenu(const QPoint &);
|
void displayContextMenu();
|
||||||
void enableSelection(bool enable);
|
void enableSelection(bool enable);
|
||||||
void askForLocalPlugin();
|
void askForLocalPlugin();
|
||||||
void askForPluginUrl();
|
void askForPluginUrl();
|
||||||
|
@ -375,7 +375,7 @@ void SearchJobWidget::filterSearchResults(const QString &name)
|
|||||||
updateResultsCount();
|
updateResultsCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchJobWidget::showFilterContextMenu(const QPoint &)
|
void SearchJobWidget::showFilterContextMenu()
|
||||||
{
|
{
|
||||||
const Preferences *pref = Preferences::instance();
|
const Preferences *pref = Preferences::instance();
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ private:
|
|||||||
void saveSettings() const;
|
void saveSettings() const;
|
||||||
void updateFilter();
|
void updateFilter();
|
||||||
void filterSearchResults(const QString &name);
|
void filterSearchResults(const QString &name);
|
||||||
void showFilterContextMenu(const QPoint &);
|
void showFilterContextMenu();
|
||||||
void contextMenuEvent(QContextMenuEvent *event) override;
|
void contextMenuEvent(QContextMenuEvent *event) override;
|
||||||
void onItemDoubleClicked(const QModelIndex &index);
|
void onItemDoubleClicked(const QModelIndex &index);
|
||||||
void searchFinished(bool cancelled);
|
void searchFinished(bool cancelled);
|
||||||
|
@ -102,7 +102,7 @@ void TagFilterWidget::onCurrentRowChanged(const QModelIndex ¤t, const QMod
|
|||||||
emit tagChanged(getTagFilter(static_cast<TagFilterProxyModel *>(model()), current));
|
emit tagChanged(getTagFilter(static_cast<TagFilterProxyModel *>(model()), current));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TagFilterWidget::showMenu(QPoint)
|
void TagFilterWidget::showMenu()
|
||||||
{
|
{
|
||||||
QMenu *menu = new QMenu(this);
|
QMenu *menu = new QMenu(this);
|
||||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
@ -47,7 +47,7 @@ signals:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onCurrentRowChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
void onCurrentRowChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
||||||
void showMenu(QPoint);
|
void showMenu();
|
||||||
void callUpdateGeometry();
|
void callUpdateGeometry();
|
||||||
void addTag();
|
void addTag();
|
||||||
void removeTag();
|
void removeTag();
|
||||||
|
@ -286,7 +286,7 @@ void StatusFilterWidget::updateTorrentNumbers()
|
|||||||
item(TorrentFilter::Errored)->setData(Qt::DisplayRole, tr("Errored (%1)").arg(nbErrored));
|
item(TorrentFilter::Errored)->setData(Qt::DisplayRole, tr("Errored (%1)").arg(nbErrored));
|
||||||
}
|
}
|
||||||
|
|
||||||
void StatusFilterWidget::showMenu(const QPoint &) {}
|
void StatusFilterWidget::showMenu() {}
|
||||||
|
|
||||||
void StatusFilterWidget::applyFilter(int row)
|
void StatusFilterWidget::applyFilter(int row)
|
||||||
{
|
{
|
||||||
@ -558,7 +558,7 @@ void TrackerFiltersList::handleFavicoDownloadFinished(const Net::DownloadResult
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrackerFiltersList::showMenu(const QPoint &)
|
void TrackerFiltersList::showMenu()
|
||||||
{
|
{
|
||||||
QMenu *menu = new QMenu(this);
|
QMenu *menu = new QMenu(this);
|
||||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
@ -68,7 +68,7 @@ protected:
|
|||||||
TransferListWidget *transferList;
|
TransferListWidget *transferList;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
virtual void showMenu(const QPoint &) = 0;
|
virtual void showMenu() = 0;
|
||||||
virtual void applyFilter(int row) = 0;
|
virtual void applyFilter(int row) = 0;
|
||||||
virtual void handleNewTorrent(BitTorrent::Torrent *const) = 0;
|
virtual void handleNewTorrent(BitTorrent::Torrent *const) = 0;
|
||||||
virtual void torrentAboutToBeDeleted(BitTorrent::Torrent *const) = 0;
|
virtual void torrentAboutToBeDeleted(BitTorrent::Torrent *const) = 0;
|
||||||
@ -89,7 +89,7 @@ private slots:
|
|||||||
private:
|
private:
|
||||||
// These 4 methods are virtual slots in the base class.
|
// These 4 methods are virtual slots in the base class.
|
||||||
// No need to redeclare them here as slots.
|
// No need to redeclare them here as slots.
|
||||||
void showMenu(const QPoint &) override;
|
void showMenu() override;
|
||||||
void applyFilter(int row) override;
|
void applyFilter(int row) override;
|
||||||
void handleNewTorrent(BitTorrent::Torrent *const) override;
|
void handleNewTorrent(BitTorrent::Torrent *const) override;
|
||||||
void torrentAboutToBeDeleted(BitTorrent::Torrent *const) override;
|
void torrentAboutToBeDeleted(BitTorrent::Torrent *const) override;
|
||||||
@ -121,7 +121,7 @@ private slots:
|
|||||||
private:
|
private:
|
||||||
// These 4 methods are virtual slots in the base class.
|
// These 4 methods are virtual slots in the base class.
|
||||||
// No need to redeclare them here as slots.
|
// No need to redeclare them here as slots.
|
||||||
void showMenu(const QPoint &) override;
|
void showMenu() override;
|
||||||
void applyFilter(int row) override;
|
void applyFilter(int row) override;
|
||||||
void handleNewTorrent(BitTorrent::Torrent *const torrent) override;
|
void handleNewTorrent(BitTorrent::Torrent *const torrent) override;
|
||||||
void torrentAboutToBeDeleted(BitTorrent::Torrent *const torrent) override;
|
void torrentAboutToBeDeleted(BitTorrent::Torrent *const torrent) override;
|
||||||
|
@ -845,7 +845,7 @@ void TransferListWidget::clearSelectionTags()
|
|||||||
applyToSelectedTorrents([](BitTorrent::Torrent *const torrent) { torrent->removeAllTags(); });
|
applyToSelectedTorrents([](BitTorrent::Torrent *const torrent) { torrent->removeAllTags(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransferListWidget::displayListMenu(const QPoint &)
|
void TransferListWidget::displayListMenu()
|
||||||
{
|
{
|
||||||
const QModelIndexList selectedIndexes = selectionModel()->selectedRows();
|
const QModelIndexList selectedIndexes = selectionModel()->selectedRows();
|
||||||
if (selectedIndexes.isEmpty()) return;
|
if (selectedIndexes.isEmpty()) return;
|
||||||
|
@ -105,7 +105,7 @@ signals:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void torrentDoubleClicked();
|
void torrentDoubleClicked();
|
||||||
void displayListMenu(const QPoint &);
|
void displayListMenu();
|
||||||
void displayColumnHeaderMenu();
|
void displayColumnHeaderMenu();
|
||||||
void currentChanged(const QModelIndex ¤t, const QModelIndex&) override;
|
void currentChanged(const QModelIndex ¤t, const QModelIndex&) override;
|
||||||
void setSelectedTorrentsSuperSeeding(bool enabled) const;
|
void setSelectedTorrentsSuperSeeding(bool enabled) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user