mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
Hide title label for comments feeds
* Hide Title label for comments feeds * Hide Vote frame for boards feed
This commit is contained in:
parent
bfc3a97d36
commit
2d8a86f2fa
@ -652,6 +652,7 @@ void PostedItem::fill()
|
||||
ui->clearButton->show();
|
||||
ui->readAndClearButton->show();
|
||||
ui->nameLabel->show();
|
||||
ui->voteFrame->hide();
|
||||
}
|
||||
|
||||
// disable voting buttons - if they have already voted.
|
||||
|
@ -184,6 +184,9 @@
|
||||
</item>
|
||||
<item row="0" column="1" rowspan="2">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<property name="leftMargin">
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
|
@ -365,7 +365,7 @@ void BoardsCommentsItem::setup()
|
||||
mInFill = false;
|
||||
|
||||
/* clear ui */
|
||||
ui->titleLabel->setText(tr("Loading"));
|
||||
//ui->titleLabel->setText(tr("Loading"));
|
||||
ui->datetimeLabel->clear();
|
||||
ui->replyFrame->hide();
|
||||
|
||||
@ -456,8 +456,8 @@ void BoardsCommentsItem::fill()
|
||||
|
||||
ui->logoLabel->setPixmap( FilesDefs::getPixmapFromQtResourcePath(":/icons/png/comment.png"));
|
||||
|
||||
RetroShareLink link = RetroShareLink::createGxsGroupLink(RetroShareLink::TYPE_POSTED, mGroupMeta.mGroupId, groupName());
|
||||
ui->titleLabel->setText(link.toHtml());
|
||||
//RetroShareLink link = RetroShareLink::createGxsGroupLink(RetroShareLink::TYPE_POSTED, mGroupMeta.mGroupId, groupName());
|
||||
//ui->titleLabel->setText(link.toHtml());
|
||||
|
||||
RetroShareLink msgLink = RetroShareLink::createGxsMessageLink(RetroShareLink::TYPE_POSTED, mPost.mMeta.mGroupId, mPost.mMeta.mMsgId, messageName());
|
||||
ui->subjectLabel->setText(msgLink.toHtml());
|
||||
@ -506,6 +506,7 @@ void BoardsCommentsItem::fill()
|
||||
{
|
||||
ui->clearButton->show();
|
||||
ui->readAndClearButton->show();
|
||||
ui->titleLabel->hide();
|
||||
}
|
||||
|
||||
// hide read button not yet functional
|
||||
|
@ -150,7 +150,7 @@ void ChannelsCommentsItem::setup()
|
||||
mLoaded = false;
|
||||
|
||||
/* clear ui */
|
||||
ui->titleLabel->setText(tr("Loading..."));
|
||||
//ui->titleLabel->setText(tr("Loading..."));
|
||||
ui->datetimelabel->clear();
|
||||
|
||||
/* general ones */
|
||||
@ -180,7 +180,7 @@ void ChannelsCommentsItem::setup()
|
||||
ui->expandButton->hide();
|
||||
ui->unsubscribeButton->hide();
|
||||
|
||||
ui->titleLabel->setMinimumWidth(100);
|
||||
//ui->titleLabel->setMinimumWidth(100);
|
||||
|
||||
ui->mainFrame->setProperty("new", false);
|
||||
ui->mainFrame->style()->unpolish(ui->mainFrame);
|
||||
@ -412,9 +412,9 @@ void ChannelsCommentsItem::fill()
|
||||
removeItem();
|
||||
}
|
||||
|
||||
RetroShareLink link = RetroShareLink::createGxsGroupLink(RetroShareLink::TYPE_CHANNEL, mPost.mMeta.mGroupId, groupName());
|
||||
title += link.toHtml();
|
||||
ui->titleLabel->setText(title);
|
||||
//RetroShareLink link = RetroShareLink::createGxsGroupLink(RetroShareLink::TYPE_CHANNEL, mPost.mMeta.mGroupId, groupName());
|
||||
//title += link.toHtml();
|
||||
//ui->titleLabel->setText(title);
|
||||
|
||||
RetroShareLink msgLink = RetroShareLink::createGxsMessageLink(RetroShareLink::TYPE_CHANNEL, mPost.mMeta.mGroupId, mPost.mMeta.mMsgId, messageName());
|
||||
ui->subjectLabel->setText(msgLink.toHtml());
|
||||
@ -428,6 +428,7 @@ void ChannelsCommentsItem::fill()
|
||||
ui->unsubscribeButton->setEnabled(false);
|
||||
}
|
||||
ui->readButton->hide();
|
||||
ui->titleLabel->hide();
|
||||
|
||||
if (IS_MSG_NEW(mPost.mMeta.mMsgStatus)) {
|
||||
mCloseOnRead = true;
|
||||
@ -436,7 +437,7 @@ void ChannelsCommentsItem::fill()
|
||||
else
|
||||
{
|
||||
/* subject */
|
||||
ui->titleLabel->setText(QString::fromUtf8(mPost.mMeta.mMsgName.c_str()));
|
||||
//ui->titleLabel->setText(QString::fromUtf8(mPost.mMeta.mMsgName.c_str()));
|
||||
|
||||
uint32_t autorized_lines = (int)floor((ui->logoLabel->height() - ui->titleLabel->height() - ui->buttonHLayout->sizeHint().height())/QFontMetricsF(ui->subjectLabel->font()).height());
|
||||
|
||||
@ -455,6 +456,7 @@ void ChannelsCommentsItem::fill()
|
||||
ui->readAndClearButton->hide();
|
||||
ui->unsubscribeButton->hide();
|
||||
ui->copyLinkButton->show();
|
||||
ui->titleLabel->hide();
|
||||
|
||||
if (IS_GROUP_SUBSCRIBED(mGroupMeta.mSubscribeFlags) || IS_GROUP_ADMIN(mGroupMeta.mSubscribeFlags))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user