Use Qt object ownership to handle QShortcut deletions

This commit is contained in:
Chocobo1
2019-07-13 12:55:21 +08:00
parent 662e1e6134
commit 599bfc0735
12 changed files with 38 additions and 66 deletions

View File

@@ -38,8 +38,6 @@ namespace BitTorrent
class TorrentHandle;
}
class QShortcut;
class MainWindow;
class TransferListDelegate;
class TransferListModel;
@@ -128,11 +126,6 @@ private:
TransferListModel *m_listModel;
TransferListSortModel *m_sortFilterModel;
MainWindow *m_mainWindow;
QShortcut *m_editHotkey;
QShortcut *m_deleteHotkey;
QShortcut *m_permDeleteHotkey;
QShortcut *m_doubleClickHotkey;
QShortcut *m_recheckHotkey;
};
#endif // TRANSFERLISTWIDGET_H