Always use QStyledItemDelegate as base of delegate classes

PR #19340.
This commit is contained in:
Vladimir Golovnev
2023-07-21 08:37:11 +03:00
committed by GitHub
parent 0f862fcf9f
commit d554f4d44a
4 changed files with 33 additions and 39 deletions

View File

@@ -1,5 +1,6 @@
/*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2023 Vladimir Golovnev <glassez@yandex.ru>
* Copyright (C) 2011 Christophe Dumez <chris@qbittorrent.org>
*
* This program is free software; you can redistribute it and/or
@@ -33,8 +34,6 @@
#include "base/path.h"
#include "base/settingvalue.h"
class QStandardItemModel;
namespace BitTorrent
{
class Torrent;
@@ -44,7 +43,6 @@ namespace Ui
{
class PreviewSelectDialog;
}
class PreviewListDelegate;
class PreviewSelectDialog final : public QDialog
{
@@ -79,8 +77,6 @@ private:
void saveWindowState();
Ui::PreviewSelectDialog *m_ui = nullptr;
QStandardItemModel *m_previewListModel = nullptr;
PreviewListDelegate *m_listDelegate = nullptr;
const BitTorrent::Torrent *m_torrent = nullptr;
bool m_headerStateInitialized = false;