1 /* 2 * This file Copyright (C) 2009-2015 Mnemosyne LLC 3 * 4 * It may be used under the GNU GPL versions 2 or 3 5 * or any future license endorsed by Mnemosyne LLC. 6 * 7 */ 8 9 #pragma once 10 11 #include "TorrentDelegate.h" 12 13 class TorrentDelegateMin : public TorrentDelegate 14 { 15 Q_OBJECT 16 17 public: 18 explicit TorrentDelegateMin(QObject* parent = nullptr) : TorrentDelegate(parent)19 TorrentDelegate(parent) 20 { 21 } 22 23 protected: 24 // TorrentDelegate 25 QSize sizeHint(QStyleOptionViewItem const&, Torrent const&) const override; 26 void drawTorrent(QPainter* painter, QStyleOptionViewItem const& option, Torrent const&) const override; 27 }; 28