Cleanup + docs

This commit is contained in:
Luca Beltrame 2013-06-09 18:39:26 +02:00
parent e74c73db3c
commit c363891de3
4 changed files with 54 additions and 12 deletions

View file

@ -23,6 +23,12 @@
#ifndef DANBOORUPOSTDELEGATE_H
#define DANBOORUPOSTDELEGATE_H
/**
* @brief This file includes custom delegates to represent DanbooruItems.
* @file danboorupostdelegate.h
*
**/
#include <QStyledItemDelegate>
class QListView;
@ -31,6 +37,10 @@ class KPushButton;
namespace Danbooru {
/**
* @brief Specific delegate for Danbooru items.
*
*/
class DanbooruPostDelegate : public QStyledItemDelegate
{
@ -47,10 +57,6 @@ namespace Danbooru {
QModelIndex hoveredIndex() const;
QList<QWidget*> createItemWidgets() const;
void updateItemWidgets( const QList<QWidget*> widgets,
const QStyleOptionViewItem& option,
const QPersistentModelIndex & index) const;
private: