Convert to use private pointer for ui object

This commit is contained in:
Chocobo1 2019-02-25 00:31:39 +08:00
parent bb041c0eca
commit e5dca50025
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
8 changed files with 88 additions and 57 deletions

View file

@ -32,7 +32,6 @@
#include <QDialog>
#include "base/settingvalue.h"
#include "ui_previewselectdialog.h"
class QStandardItemModel;
@ -40,9 +39,13 @@ namespace BitTorrent
{
class TorrentHandle;
}
namespace Ui
{
class PreviewSelectDialog;
}
class PreviewListDelegate;
class PreviewSelectDialog : public QDialog, private Ui::preview
class PreviewSelectDialog : public QDialog
{
Q_OBJECT
@ -73,6 +76,7 @@ private:
void loadWindowState();
void saveWindowState();
Ui::PreviewSelectDialog *m_ui;
QStandardItemModel *m_previewListModel;
PreviewListDelegate *m_listDelegate;
BitTorrent::TorrentHandle *const m_torrent;