Cleanup + docs
This commit is contained in:
parent
e74c73db3c
commit
c363891de3
4 changed files with 54 additions and 12 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue