Exemple #1
0
void CommentsView::reloadComments()
{
    hideComments();
    removeComments();
    loadComments();
    showComments();
}
Exemple #2
0
void CommentsView::reloadComments()
{
    qDebug() << "Reloading";
    hideComments();
    removeComments();
    loadComments();
    showComments();
}
Exemple #3
0
void CommentsView::showReply()
{
    CommentsViewItem* parentItem = qobject_cast<CommentsViewItem*>( sender() );

    hideComments();
    NewCommentForm* form = new NewCommentForm( this );
    m_contentLayout->addItem( form );
    form->setParentIndex( parentItem->modelIndex() );

    connect( form, SIGNAL( accepted( QModelIndex, QString, QString ) ),
             SLOT( addNewUserComment( QModelIndex, QString, QString ) ) );
    connect( form, SIGNAL( canceled() ), SLOT( cancelNewComment() ) );
}