void CommentsView::reloadComments() { hideComments(); removeComments(); loadComments(); showComments(); }
void CommentsView::reloadComments() { qDebug() << "Reloading"; hideComments(); removeComments(); loadComments(); showComments(); }
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() ) ); }