#include <commentsview.h>
Public Member Functions | |
CommentsView (QGraphicsItem *parent=0, Qt::WindowFlags wFlags=0) | |
virtual void | setModel (QAbstractItemModel *model) |
Protected Slots | |
void | showReply () |
void | removeComments () |
void | loadComments () |
void | reloadComments () |
void | addNewUserComment (QModelIndex parentIndex, QString title, QString body) |
void | cancelNewComment () |
void | hideComments () |
void | showComments () |
Protected Member Functions | |
bool | eventFilter (QObject *obj, QEvent *event) |
CommentsViewItem * | addComment (const QModelIndex &index, QGraphicsWidget *parent, int depth) |
Protected Attributes | |
Plasma::ItemBackground * | m_itemBackground |
Definition at line 37 of file commentsview.h.
CommentsView::CommentsView | ( | QGraphicsItem * | parent = 0 , |
|
Qt::WindowFlags | wFlags = 0 | |||
) |
Definition at line 34 of file commentsview.cpp.
CommentsViewItem * CommentsView::addComment | ( | const QModelIndex & | index, | |
QGraphicsWidget * | parent, | |||
int | depth | |||
) | [protected] |
Definition at line 58 of file commentsview.cpp.
void CommentsView::addNewUserComment | ( | QModelIndex | parentIndex, | |
QString | title, | |||
QString | body | |||
) | [protected, slot] |
Definition at line 135 of file commentsview.cpp.
void CommentsView::cancelNewComment | ( | ) | [protected, slot] |
Definition at line 143 of file commentsview.cpp.
bool CommentsView::eventFilter | ( | QObject * | obj, | |
QEvent * | event | |||
) | [protected] |
Definition at line 82 of file commentsview.cpp.
void CommentsView::hideComments | ( | ) | [protected, slot] |
Definition at line 149 of file commentsview.cpp.
void CommentsView::loadComments | ( | ) | [protected, slot] |
Definition at line 119 of file commentsview.cpp.
void CommentsView::reloadComments | ( | ) | [protected, slot] |
Definition at line 127 of file commentsview.cpp.
void CommentsView::removeComments | ( | ) | [protected, slot] |
Definition at line 107 of file commentsview.cpp.
void CommentsView::setModel | ( | QAbstractItemModel * | model | ) | [virtual] |
Reimplemented from AbstractItemView.
Definition at line 46 of file commentsview.cpp.
void CommentsView::showComments | ( | ) | [protected, slot] |
Definition at line 155 of file commentsview.cpp.
void CommentsView::showReply | ( | ) | [protected, slot] |
Definition at line 93 of file commentsview.cpp.
Plasma::ItemBackground* CommentsView::m_itemBackground [protected] |
Definition at line 58 of file commentsview.h.