source: trunk/qt/TorrentDelegateMin.h @ 14539

Last change on this file since 14539 was 14539, checked in by mikedld, 6 years ago

Unify/prettify Qt client headers style

  • Property svn:keywords set to Date Rev Author Id
File size: 748 bytes
Line 
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 * $Id: TorrentDelegateMin.h 14539 2015-06-12 22:12:12Z mikedld $
8 */
9
10#ifndef QTR_TORRENT_DELEGATE_MIN_H
11#define QTR_TORRENT_DELEGATE_MIN_H
12
13#include "TorrentDelegate.h"
14
15class TorrentDelegateMin: public TorrentDelegate
16{
17    Q_OBJECT
18
19  public:
20    explicit TorrentDelegateMin (QObject * parent = nullptr): TorrentDelegate (parent) {}
21    virtual ~TorrentDelegateMin () {}
22
23  protected:
24    // TorrentDelegate
25    virtual QSize sizeHint (const QStyleOptionViewItem&, const Torrent&) const;
26    virtual void drawTorrent (QPainter * painter, const QStyleOptionViewItem& option, const Torrent&) const;
27};
28
29#endif // QTR_TORRENT_DELEGATE_MIN_H
Note: See TracBrowser for help on using the repository browser.