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) 2006 Christophe Dumez <chris@qbittorrent.org>
*
* This program is free software; you can redistribute it and/or
@@ -28,11 +29,11 @@
#pragma once
#include <QItemDelegate>
#include <QStyledItemDelegate>
#include "progressbarpainter.h"
class PreviewListDelegate final : public QItemDelegate
class PreviewListDelegate final : public QStyledItemDelegate
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(PreviewListDelegate)