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

@@ -35,7 +35,6 @@
#include "base/bittorrent/torrenthandle.h"
class QPushButton;
class QShortcut;
class QTreeView;
class DownloadedPiecesBar;
@@ -121,10 +120,6 @@ private:
PieceAvailabilityBar *m_piecesAvailability;
PropTabBar *m_tabBar;
LineEdit *m_contentFilterLine;
QShortcut *m_editHotkeyFile;
QShortcut *m_editHotkeyWeb;
QShortcut *m_deleteHotkeyWeb;
QShortcut *m_openHotkeyFile;
};
#endif // PROPERTIESWIDGET_H