mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Disable move constructor where it is sensible
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Ui
|
||||
class AboutDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(AboutDialog)
|
||||
Q_DISABLE_COPY_MOVE(AboutDialog)
|
||||
|
||||
public:
|
||||
explicit AboutDialog(QWidget *parent);
|
||||
|
||||
@@ -59,7 +59,7 @@ class TorrentFileGuard;
|
||||
class AddNewTorrentDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(AddNewTorrentDialog)
|
||||
Q_DISABLE_COPY_MOVE(AddNewTorrentDialog)
|
||||
|
||||
public:
|
||||
static const int minPathHistoryLength = 0;
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Ui
|
||||
class BanListOptionsDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(BanListOptionsDialog)
|
||||
Q_DISABLE_COPY_MOVE(BanListOptionsDialog)
|
||||
|
||||
public:
|
||||
explicit BanListOptionsDialog(QWidget *parent = nullptr);
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
class CategoryFilterWidget final : public QTreeView
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(CategoryFilterWidget)
|
||||
Q_DISABLE_COPY_MOVE(CategoryFilterWidget)
|
||||
|
||||
public:
|
||||
explicit CategoryFilterWidget(QWidget *parent = nullptr);
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Ui
|
||||
class DownloadFromURLDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(DownloadFromURLDialog)
|
||||
Q_DISABLE_COPY_MOVE(DownloadFromURLDialog)
|
||||
|
||||
public:
|
||||
explicit DownloadFromURLDialog(QWidget *parent);
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace
|
||||
class FileSystemPathEdit::FileSystemPathEditPrivate
|
||||
{
|
||||
Q_DECLARE_PUBLIC(FileSystemPathEdit)
|
||||
Q_DISABLE_COPY(FileSystemPathEditPrivate)
|
||||
Q_DISABLE_COPY_MOVE(FileSystemPathEditPrivate)
|
||||
|
||||
FileSystemPathEditPrivate(FileSystemPathEdit *q, Private::FileEditorWithCompletion *editor);
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ private:
|
||||
virtual void setEditWidgetText(const QString &text) = 0;
|
||||
|
||||
QWidget *editWidgetImpl() const;
|
||||
Q_DISABLE_COPY(FileSystemPathEdit)
|
||||
Q_DISABLE_COPY_MOVE(FileSystemPathEdit)
|
||||
class FileSystemPathEditPrivate;
|
||||
Q_DECLARE_PRIVATE(FileSystemPathEdit)
|
||||
FileSystemPathEditPrivate *d_ptr;
|
||||
|
||||
@@ -112,7 +112,7 @@ namespace Private
|
||||
class FileLineEdit final : public QLineEdit, public FileEditorWithCompletion
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(FileLineEdit)
|
||||
Q_DISABLE_COPY_MOVE(FileLineEdit)
|
||||
|
||||
public:
|
||||
FileLineEdit(QWidget *parent = nullptr);
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Ui
|
||||
class IPSubnetWhitelistOptionsDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(IPSubnetWhitelistOptionsDialog)
|
||||
Q_DISABLE_COPY_MOVE(IPSubnetWhitelistOptionsDialog)
|
||||
|
||||
public:
|
||||
explicit IPSubnetWhitelistOptionsDialog(QWidget *parent = nullptr);
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
class LogFilterModel final : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(LogFilterModel)
|
||||
Q_DISABLE_COPY_MOVE(LogFilterModel)
|
||||
|
||||
public:
|
||||
explicit LogFilterModel(Log::MsgTypes types = Log::ALL, QObject *parent = nullptr);
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
class LogListView final : public QListView
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(LogListView)
|
||||
Q_DISABLE_COPY_MOVE(LogListView)
|
||||
|
||||
public:
|
||||
explicit LogListView(QWidget *parent = nullptr);
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
class BaseLogModel : public QAbstractListModel
|
||||
{
|
||||
Q_DISABLE_COPY(BaseLogModel)
|
||||
Q_DISABLE_COPY_MOVE(BaseLogModel)
|
||||
|
||||
public:
|
||||
enum MessageTypeRole
|
||||
@@ -86,7 +86,7 @@ private:
|
||||
class LogMessageModel : public BaseLogModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(LogMessageModel)
|
||||
Q_DISABLE_COPY_MOVE(LogMessageModel)
|
||||
|
||||
public:
|
||||
explicit LogMessageModel(QObject *parent = nullptr);
|
||||
@@ -101,7 +101,7 @@ private:
|
||||
class LogPeerModel : public BaseLogModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(LogPeerModel)
|
||||
Q_DISABLE_COPY_MOVE(LogPeerModel)
|
||||
|
||||
public:
|
||||
explicit LogPeerModel(QObject *parent = nullptr);
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace Ui
|
||||
class OptionsDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(OptionsDialog)
|
||||
Q_DISABLE_COPY_MOVE(OptionsDialog)
|
||||
|
||||
using ThisType = OptionsDialog;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
class PreviewListDelegate final : public QItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PreviewListDelegate)
|
||||
Q_DISABLE_COPY_MOVE(PreviewListDelegate)
|
||||
|
||||
public:
|
||||
explicit PreviewListDelegate(QObject *parent = nullptr);
|
||||
|
||||
@@ -47,7 +47,7 @@ class PreviewListDelegate;
|
||||
class PreviewSelectDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PreviewSelectDialog)
|
||||
Q_DISABLE_COPY_MOVE(PreviewSelectDialog)
|
||||
|
||||
public:
|
||||
enum PreviewColumn
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Net
|
||||
class ProgramUpdater final : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(ProgramUpdater)
|
||||
Q_DISABLE_COPY_MOVE(ProgramUpdater)
|
||||
|
||||
public:
|
||||
using QObject::QObject;
|
||||
|
||||
@@ -39,7 +39,7 @@ class DownloadedPiecesBar final : public PiecesBar
|
||||
{
|
||||
using base = PiecesBar;
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(DownloadedPiecesBar)
|
||||
Q_DISABLE_COPY_MOVE(DownloadedPiecesBar)
|
||||
|
||||
public:
|
||||
DownloadedPiecesBar(QWidget *parent);
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
class PeerListSortModel final : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PeerListSortModel)
|
||||
Q_DISABLE_COPY_MOVE(PeerListSortModel)
|
||||
|
||||
public:
|
||||
enum
|
||||
|
||||
@@ -34,7 +34,7 @@ class PieceAvailabilityBar final : public PiecesBar
|
||||
{
|
||||
using base = PiecesBar;
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PieceAvailabilityBar)
|
||||
Q_DISABLE_COPY_MOVE(PieceAvailabilityBar)
|
||||
|
||||
public:
|
||||
PieceAvailabilityBar(QWidget *parent);
|
||||
|
||||
@@ -44,7 +44,7 @@ class PiecesBar : public QWidget
|
||||
{
|
||||
using base = QWidget;
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PiecesBar)
|
||||
Q_DISABLE_COPY_MOVE(PiecesBar)
|
||||
|
||||
public:
|
||||
explicit PiecesBar(QWidget *parent = nullptr);
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace Ui
|
||||
class PropertiesWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PropertiesWidget)
|
||||
Q_DISABLE_COPY_MOVE(PropertiesWidget)
|
||||
|
||||
public:
|
||||
enum SlideState
|
||||
|
||||
@@ -52,7 +52,7 @@ enum PropColumn
|
||||
class PropListDelegate final : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PropListDelegate)
|
||||
Q_DISABLE_COPY_MOVE(PropListDelegate)
|
||||
|
||||
public:
|
||||
explicit PropListDelegate(PropertiesWidget *properties);
|
||||
|
||||
@@ -35,7 +35,7 @@ class QButtonGroup;
|
||||
class PropTabBar : public QHBoxLayout
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PropTabBar)
|
||||
Q_DISABLE_COPY_MOVE(PropTabBar)
|
||||
|
||||
public:
|
||||
enum PropertyTab
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace BitTorrent
|
||||
class TrackerListWidget : public QTreeWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TrackerListWidget)
|
||||
Q_DISABLE_COPY_MOVE(TrackerListWidget)
|
||||
|
||||
public:
|
||||
enum TrackerListColumn
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Ui
|
||||
class AutomatedRssDownloader : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(AutomatedRssDownloader)
|
||||
Q_DISABLE_COPY_MOVE(AutomatedRssDownloader)
|
||||
|
||||
public:
|
||||
explicit AutomatedRssDownloader(QWidget *parent = nullptr);
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Ui
|
||||
class PluginSelectDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PluginSelectDialog)
|
||||
Q_DISABLE_COPY_MOVE(PluginSelectDialog)
|
||||
|
||||
public:
|
||||
explicit PluginSelectDialog(SearchPluginManager *pluginManager, QWidget *parent = nullptr);
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Ui
|
||||
class PluginSourceDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PluginSourceDialog)
|
||||
Q_DISABLE_COPY_MOVE(PluginSourceDialog)
|
||||
|
||||
public:
|
||||
explicit PluginSourceDialog(QWidget *parent = nullptr);
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Ui
|
||||
class SearchJobWidget final : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(SearchJobWidget)
|
||||
Q_DISABLE_COPY_MOVE(SearchJobWidget)
|
||||
|
||||
public:
|
||||
enum class NameFilteringMode
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace Ui
|
||||
class SearchWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(SearchWidget)
|
||||
Q_DISABLE_COPY_MOVE(SearchWidget)
|
||||
|
||||
public:
|
||||
explicit SearchWidget(MainWindow *mainWindow);
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Ui
|
||||
class SpeedLimitDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(SpeedLimitDialog)
|
||||
Q_DISABLE_COPY_MOVE(SpeedLimitDialog)
|
||||
|
||||
public:
|
||||
explicit SpeedLimitDialog(QWidget *parent);
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Ui
|
||||
class StatsDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(StatsDialog)
|
||||
Q_DISABLE_COPY_MOVE(StatsDialog)
|
||||
|
||||
public:
|
||||
explicit StatsDialog(QWidget *parent);
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace BitTorrent
|
||||
class StatusBar : public QStatusBar
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(StatusBar)
|
||||
Q_DISABLE_COPY_MOVE(StatusBar)
|
||||
|
||||
public:
|
||||
StatusBar(QWidget *parent = nullptr);
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace Ui
|
||||
class TorrentCategoryDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TorrentCategoryDialog)
|
||||
Q_DISABLE_COPY_MOVE(TorrentCategoryDialog)
|
||||
|
||||
public:
|
||||
static QString createCategory(QWidget *parent, const QString &parentCategoryName = {});
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace BitTorrent
|
||||
class TorrentContentModel final : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TorrentContentModel)
|
||||
Q_DISABLE_COPY_MOVE(TorrentContentModel)
|
||||
|
||||
public:
|
||||
enum Roles
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace BitTorrent
|
||||
class TorrentContentTreeView final : public QTreeView
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TorrentContentTreeView)
|
||||
Q_DISABLE_COPY_MOVE(TorrentContentTreeView)
|
||||
|
||||
public:
|
||||
explicit TorrentContentTreeView(QWidget *parent = nullptr);
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Ui
|
||||
class TorrentOptionsDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TorrentOptionsDialog)
|
||||
Q_DISABLE_COPY_MOVE(TorrentOptionsDialog)
|
||||
|
||||
public:
|
||||
explicit TorrentOptionsDialog(QWidget *parent, const QVector<BitTorrent::Torrent *> &torrents);
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Ui
|
||||
class TrackerEntriesDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TrackerEntriesDialog)
|
||||
Q_DISABLE_COPY_MOVE(TrackerEntriesDialog)
|
||||
|
||||
public:
|
||||
explicit TrackerEntriesDialog(QWidget *parent);
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
class TransferListDelegate final : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TransferListDelegate)
|
||||
Q_DISABLE_COPY_MOVE(TransferListDelegate)
|
||||
|
||||
public:
|
||||
explicit TransferListDelegate(QObject *parent);
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Net
|
||||
class BaseFilterWidget : public QListWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(BaseFilterWidget)
|
||||
Q_DISABLE_COPY_MOVE(BaseFilterWidget)
|
||||
|
||||
public:
|
||||
BaseFilterWidget(QWidget *parent, TransferListWidget *transferList);
|
||||
@@ -76,7 +76,7 @@ private slots:
|
||||
class StatusFilterWidget final : public BaseFilterWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(StatusFilterWidget)
|
||||
Q_DISABLE_COPY_MOVE(StatusFilterWidget)
|
||||
|
||||
public:
|
||||
StatusFilterWidget(QWidget *parent, TransferListWidget *transferList);
|
||||
@@ -97,7 +97,7 @@ private:
|
||||
class TrackerFiltersList final : public BaseFilterWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TrackerFiltersList)
|
||||
Q_DISABLE_COPY_MOVE(TrackerFiltersList)
|
||||
|
||||
public:
|
||||
TrackerFiltersList(QWidget *parent, TransferListWidget *transferList, bool downloadFavicon);
|
||||
@@ -143,7 +143,7 @@ class TagFilterWidget;
|
||||
class TransferListFiltersWidget final : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TransferListFiltersWidget)
|
||||
Q_DISABLE_COPY_MOVE(TransferListFiltersWidget)
|
||||
|
||||
public:
|
||||
TransferListFiltersWidget(QWidget *parent, TransferListWidget *transferList, bool downloadFavicon);
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace BitTorrent
|
||||
class TransferListModel final : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TransferListModel)
|
||||
Q_DISABLE_COPY_MOVE(TransferListModel)
|
||||
|
||||
public:
|
||||
enum Column
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace BitTorrent
|
||||
class TransferListSortModel final : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TransferListSortModel)
|
||||
Q_DISABLE_COPY_MOVE(TransferListSortModel)
|
||||
|
||||
public:
|
||||
explicit TransferListSortModel(QObject *parent = nullptr);
|
||||
|
||||
@@ -35,7 +35,7 @@ class QString;
|
||||
class TriStateWidget final : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TriStateWidget)
|
||||
Q_DISABLE_COPY_MOVE(TriStateWidget)
|
||||
|
||||
public:
|
||||
TriStateWidget(const QString &text, QWidget *parent);
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
class UIThemeManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(UIThemeManager)
|
||||
Q_DISABLE_COPY_MOVE(UIThemeManager)
|
||||
|
||||
public:
|
||||
static void initInstance();
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Ui
|
||||
class WatchedFolderOptionsDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(WatchedFolderOptionsDialog)
|
||||
Q_DISABLE_COPY_MOVE(WatchedFolderOptionsDialog)
|
||||
|
||||
public:
|
||||
explicit WatchedFolderOptionsDialog(const TorrentFilesWatcher::WatchedFolderOptions &watchedFolderOptions, QWidget *parent);
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
class WatchedFoldersModel final : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(WatchedFoldersModel)
|
||||
Q_DISABLE_COPY_MOVE(WatchedFoldersModel)
|
||||
|
||||
public:
|
||||
explicit WatchedFoldersModel(TorrentFilesWatcher *fsWatcher, QObject *parent = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user