removed debug output

This commit is contained in:
csoler 2023-11-19 17:16:48 +01:00
parent 929c04edd5
commit 45c701c8e8

View File

@ -185,16 +185,11 @@ bool ChannelsCommentsItem::setPost(const RsGxsChannelPost& post, bool doFill)
if (doFill) if (doFill)
fill(); fill();
std::cerr << "end setting post." << std::endl;
return true; return true;
} }
bool ChannelsCommentsItem::setMissingPost() bool ChannelsCommentsItem::setMissingPost()
{ {
std::cerr << "setting missing post." << std::endl;
fill(true); fill(true);
std::cerr << "end setting missing post." << std::endl;
return true; return true;
} }
@ -287,7 +282,6 @@ void ChannelsCommentsItem::load()
return; return;
mLoading= true; mLoading= true;
std::cerr << "Loading message " << mPost.mMeta.mMsgId << std::endl;
RsThread::async([this]() RsThread::async([this]()
{ {
@ -304,8 +298,7 @@ void ChannelsCommentsItem::load()
if (groups.size() != 1) if (groups.size() != 1)
{ {
std::cerr << "GxsGxsChannelGroupItem::loadGroup() Wrong number of Items"; std::cerr << "GxsGxsChannelGroupItem::loadGroup() Wrong number of Items" << std::endl;
std::cerr << std::endl;
return; return;
} }
RsGxsChannelGroup group(groups[0]); RsGxsChannelGroup group(groups[0]);
@ -336,7 +329,6 @@ void ChannelsCommentsItem::load()
{ {
RsGxsComment cmt(comments[0]); RsGxsComment cmt(comments[0]);
std::cerr << "setting comment." << std::endl;
uint32_t autorized_lines = (int)floor( (ui->avatarLabel->height() - ui->button_HL->sizeHint().height()) uint32_t autorized_lines = (int)floor( (ui->avatarLabel->height() - ui->button_HL->sizeHint().height())
/ QFontMetricsF(ui->subjectLabel->font()).height()); / QFontMetricsF(ui->subjectLabel->font()).height());
@ -353,19 +345,20 @@ void ChannelsCommentsItem::load()
ui->avatarLabel->setPixmap(pixmap); ui->avatarLabel->setPixmap(pixmap);
//Change this item to be uploaded with thread element. This is really bad practice. //Change this item to be uploaded with thread element. This is really bad practice.
mLoading=false;
} }
else else
{
mLoading=false;
removeItem(); removeItem();
}
if (posts.size() == 1) if (posts.size() == 1)
setPost(posts[0]); setPost(posts[0]);
else else
setMissingPost(); setMissingPost();
std::cerr << "End loading channel post comment data" << std::endl;
emit sizeChanged(this); emit sizeChanged(this);
mLoading=false;
}, this ); }, this );
}); });