Clean up PreviewSelectDialog class

This commit is contained in:
Chocobo1 2019-10-02 19:19:33 +08:00
parent a9e6ef183b
commit 0607050ecc
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
5 changed files with 11 additions and 12 deletions

View file

@ -60,26 +60,25 @@ public:
NB_COLUMNS
};
PreviewSelectDialog(QWidget *parent, BitTorrent::TorrentHandle *const torrent);
PreviewSelectDialog(QWidget *parent, const BitTorrent::TorrentHandle *torrent);
~PreviewSelectDialog();
signals:
void readyToPreviewFile(QString) const;
protected:
void showEvent(QShowEvent *event) override;
private slots:
void previewButtonClicked();
private:
void showEvent(QShowEvent *event) override;
void loadWindowState();
void saveWindowState();
Ui::PreviewSelectDialog *m_ui;
QStandardItemModel *m_previewListModel;
PreviewListDelegate *m_listDelegate;
BitTorrent::TorrentHandle *const m_torrent;
const BitTorrent::TorrentHandle *m_torrent;
bool m_headerStateInitialized = false;
// Settings