mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 05:38:06 -06:00
Drop superfluous const
This commit is contained in:
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
int notificationTimeout() const;
|
||||
#ifdef QBT_USES_DBUS
|
||||
void setNotificationTimeout(const int value);
|
||||
void setNotificationTimeout(int value);
|
||||
#endif
|
||||
|
||||
void showNotification(const QString &title, const QString &msg) const;
|
||||
|
||||
@@ -76,16 +76,16 @@ public:
|
||||
|
||||
public slots:
|
||||
void setVisibility(bool visible);
|
||||
void loadTorrentInfos(BitTorrent::Torrent *const torrent);
|
||||
void loadTorrentInfos(BitTorrent::Torrent *torrent);
|
||||
void loadDynamicData();
|
||||
void clear();
|
||||
void readSettings();
|
||||
void saveSettings();
|
||||
void reloadPreferences();
|
||||
void loadTrackers(BitTorrent::Torrent *const torrent);
|
||||
void loadTrackers(BitTorrent::Torrent *torrent);
|
||||
|
||||
protected slots:
|
||||
void updateTorrentInfos(BitTorrent::Torrent *const torrent);
|
||||
void updateTorrentInfos(BitTorrent::Torrent *torrent);
|
||||
void loadUrlSeeds();
|
||||
void askWebSeed();
|
||||
void deleteSelectedUrlSeeds();
|
||||
@@ -97,7 +97,7 @@ protected slots:
|
||||
|
||||
private slots:
|
||||
void configure();
|
||||
void updateSavePath(BitTorrent::Torrent *const torrent);
|
||||
void updateSavePath(BitTorrent::Torrent *torrent);
|
||||
|
||||
private:
|
||||
QPushButton *getButtonFromIndex(int index);
|
||||
|
||||
@@ -54,7 +54,7 @@ class TrackersAdditionDialog : public QDialog
|
||||
Q_DISABLE_COPY_MOVE(TrackersAdditionDialog)
|
||||
|
||||
public:
|
||||
TrackersAdditionDialog(QWidget *parent, BitTorrent::Torrent *const torrent);
|
||||
TrackersAdditionDialog(QWidget *parent, BitTorrent::Torrent *torrent);
|
||||
~TrackersAdditionDialog();
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -56,7 +56,7 @@ private slots:
|
||||
virtual void showMenu() = 0;
|
||||
virtual void applyFilter(int row) = 0;
|
||||
virtual void handleTorrentsLoaded(const QVector<BitTorrent::Torrent *> &torrents) = 0;
|
||||
virtual void torrentAboutToBeDeleted(BitTorrent::Torrent *const) = 0;
|
||||
virtual void torrentAboutToBeDeleted(BitTorrent::Torrent *) = 0;
|
||||
|
||||
private:
|
||||
TransferListWidget *m_transferList = nullptr;
|
||||
|
||||
@@ -63,8 +63,8 @@ private slots:
|
||||
void categoryAdded(const QString &categoryName);
|
||||
void categoryRemoved(const QString &categoryName);
|
||||
void torrentsLoaded(const QVector<BitTorrent::Torrent *> &torrents);
|
||||
void torrentAboutToBeRemoved(BitTorrent::Torrent *const torrent);
|
||||
void torrentCategoryChanged(BitTorrent::Torrent *const torrent, const QString &oldCategory);
|
||||
void torrentAboutToBeRemoved(BitTorrent::Torrent *torrent);
|
||||
void torrentCategoryChanged(BitTorrent::Torrent *torrent, const QString &oldCategory);
|
||||
void subcategoriesSupportChanged();
|
||||
|
||||
private:
|
||||
|
||||
@@ -54,11 +54,11 @@ private:
|
||||
void showMenu() override;
|
||||
void applyFilter(int row) override;
|
||||
void handleTorrentsLoaded(const QVector<BitTorrent::Torrent *> &torrents) override;
|
||||
void torrentAboutToBeDeleted(BitTorrent::Torrent *const) override;
|
||||
void torrentAboutToBeDeleted(BitTorrent::Torrent *) override;
|
||||
|
||||
void configure();
|
||||
|
||||
void update(const QVector<BitTorrent::Torrent *> torrents);
|
||||
void update(QVector<BitTorrent::Torrent *> torrents);
|
||||
void updateTorrentStatus(const BitTorrent::Torrent *torrent);
|
||||
void updateTexts();
|
||||
void hideZeroItems();
|
||||
|
||||
@@ -61,10 +61,10 @@ public:
|
||||
private slots:
|
||||
void tagAdded(const QString &tag);
|
||||
void tagRemoved(const QString &tag);
|
||||
void torrentTagAdded(BitTorrent::Torrent *const torrent, const QString &tag);
|
||||
void torrentTagRemoved(BitTorrent::Torrent *const, const QString &tag);
|
||||
void torrentTagAdded(BitTorrent::Torrent *torrent, const QString &tag);
|
||||
void torrentTagRemoved(BitTorrent::Torrent *, const QString &tag);
|
||||
void torrentsLoaded(const QVector<BitTorrent::Torrent *> &torrents);
|
||||
void torrentAboutToBeRemoved(BitTorrent::Torrent *const torrent);
|
||||
void torrentAboutToBeRemoved(BitTorrent::Torrent *torrent);
|
||||
|
||||
private:
|
||||
static QString tagDisplayName(const QString &tag);
|
||||
|
||||
@@ -69,7 +69,7 @@ private:
|
||||
void showMenu() override;
|
||||
void applyFilter(int row) override;
|
||||
void handleTorrentsLoaded(const QVector<BitTorrent::Torrent *> &torrents) override;
|
||||
void torrentAboutToBeDeleted(BitTorrent::Torrent *const torrent) override;
|
||||
void torrentAboutToBeDeleted(BitTorrent::Torrent *torrent) override;
|
||||
|
||||
void addItems(const QString &trackerURL, const QVector<BitTorrent::TorrentID> &torrents);
|
||||
void removeItem(const QString &trackerURL, const BitTorrent::TorrentID &id);
|
||||
|
||||
@@ -107,15 +107,15 @@ public:
|
||||
|
||||
private slots:
|
||||
void addTorrents(const QVector<BitTorrent::Torrent *> &torrents);
|
||||
void handleTorrentAboutToBeRemoved(BitTorrent::Torrent *const torrent);
|
||||
void handleTorrentStatusUpdated(BitTorrent::Torrent *const torrent);
|
||||
void handleTorrentAboutToBeRemoved(BitTorrent::Torrent *torrent);
|
||||
void handleTorrentStatusUpdated(BitTorrent::Torrent *torrent);
|
||||
void handleTorrentsUpdated(const QVector<BitTorrent::Torrent *> &torrents);
|
||||
|
||||
private:
|
||||
void configure();
|
||||
QString displayValue(const BitTorrent::Torrent *torrent, int column) const;
|
||||
QVariant internalValue(const BitTorrent::Torrent *torrent, int column, bool alt) const;
|
||||
QIcon getIconByState(const BitTorrent::TorrentState state) const;
|
||||
QIcon getIconByState(BitTorrent::TorrentState state) const;
|
||||
|
||||
QList<BitTorrent::Torrent *> m_torrentList; // maps row number to torrent handle
|
||||
QHash<BitTorrent::Torrent *, int> m_torrentMap; // maps torrent handle to row number
|
||||
|
||||
@@ -102,7 +102,7 @@ public slots:
|
||||
void renameSelectedTorrent();
|
||||
|
||||
signals:
|
||||
void currentTorrentChanged(BitTorrent::Torrent *const torrent);
|
||||
void currentTorrentChanged(BitTorrent::Torrent *torrent);
|
||||
|
||||
private slots:
|
||||
void torrentDoubleClicked();
|
||||
|
||||
@@ -54,8 +54,8 @@ class UIThemeSource
|
||||
public:
|
||||
virtual ~UIThemeSource() = default;
|
||||
|
||||
virtual QColor getColor(const QString &colorId, const ColorMode colorMode) const = 0;
|
||||
virtual Path getIconPath(const QString &iconId, const ColorMode colorMode) const = 0;
|
||||
virtual QColor getColor(const QString &colorId, ColorMode colorMode) const = 0;
|
||||
virtual Path getIconPath(const QString &iconId, ColorMode colorMode) const = 0;
|
||||
virtual QByteArray readStyleSheet() = 0;
|
||||
};
|
||||
|
||||
@@ -65,8 +65,8 @@ public:
|
||||
DefaultThemeSource();
|
||||
|
||||
QByteArray readStyleSheet() override;
|
||||
QColor getColor(const QString &colorId, const ColorMode colorMode) const override;
|
||||
Path getIconPath(const QString &iconId, const ColorMode colorMode) const override;
|
||||
QColor getColor(const QString &colorId, ColorMode colorMode) const override;
|
||||
Path getIconPath(const QString &iconId, ColorMode colorMode) const override;
|
||||
|
||||
private:
|
||||
void loadColors();
|
||||
@@ -79,8 +79,8 @@ private:
|
||||
class CustomThemeSource : public UIThemeSource
|
||||
{
|
||||
public:
|
||||
QColor getColor(const QString &colorId, const ColorMode colorMode) const override;
|
||||
Path getIconPath(const QString &iconId, const ColorMode colorMode) const override;
|
||||
QColor getColor(const QString &colorId, ColorMode colorMode) const override;
|
||||
Path getIconPath(const QString &iconId, ColorMode colorMode) const override;
|
||||
QByteArray readStyleSheet() override;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user