Branch Watch Tool: Add Rule Of 5 And Remove Unnecessary Include

This commit is contained in:
mitaclaw
2024-05-24 15:44:49 -07:00
parent ecce8e81c8
commit 4a2ec86a9a
3 changed files with 19 additions and 2 deletions

View File

@ -57,6 +57,12 @@ public:
: QSortFilterProxyModel(parent), m_branch_watch(branch_watch) : QSortFilterProxyModel(parent), m_branch_watch(branch_watch)
{ {
} }
~BranchWatchProxyModel() override = default;
BranchWatchProxyModel(const BranchWatchProxyModel&) = delete;
BranchWatchProxyModel(BranchWatchProxyModel&&) = delete;
BranchWatchProxyModel& operator=(const BranchWatchProxyModel&) = delete;
BranchWatchProxyModel& operator=(BranchWatchProxyModel&&) = delete;
BranchWatchTableModel* sourceModel() const BranchWatchTableModel* sourceModel() const
{ {

View File

@ -9,12 +9,11 @@
#include <QDialog> #include <QDialog>
#include <QModelIndexList> #include <QModelIndexList>
#include "Core/Core.h"
namespace Core namespace Core
{ {
class BranchWatch; class BranchWatch;
class CPUThreadGuard; class CPUThreadGuard;
enum class State;
class System; class System;
} // namespace Core } // namespace Core
class PPCSymbolDB; class PPCSymbolDB;
@ -54,6 +53,11 @@ public:
QWidget* parent = nullptr); QWidget* parent = nullptr);
~BranchWatchDialog() override; ~BranchWatchDialog() override;
BranchWatchDialog(const BranchWatchDialog&) = delete;
BranchWatchDialog(BranchWatchDialog&&) = delete;
BranchWatchDialog& operator=(const BranchWatchDialog&) = delete;
BranchWatchDialog& operator=(BranchWatchDialog&&) = delete;
protected: protected:
void hideEvent(QHideEvent* event) override; void hideEvent(QHideEvent* event) override;
void showEvent(QShowEvent* event) override; void showEvent(QShowEvent* event) override;

View File

@ -75,6 +75,13 @@ public:
m_ppc_symbol_db(ppc_symbol_db) m_ppc_symbol_db(ppc_symbol_db)
{ {
} }
~BranchWatchTableModel() override = default;
BranchWatchTableModel(const BranchWatchTableModel&) = delete;
BranchWatchTableModel(BranchWatchTableModel&&) = delete;
BranchWatchTableModel& operator=(const BranchWatchTableModel&) = delete;
BranchWatchTableModel& operator=(BranchWatchTableModel&&) = delete;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
QVariant headerData(int section, Qt::Orientation orientation, QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const override; int role = Qt::DisplayRole) const override;