Hide the new and read button/label not used yet on Board feeds

This commit is contained in:
defnax 2021-02-13 12:27:14 +01:00
parent 777755e665
commit 07aff5cb8f

View File

@ -437,6 +437,10 @@ void PostedItem::setup()
ui->clearButton->hide(); ui->clearButton->hide();
ui->readAndClearButton->hide(); ui->readAndClearButton->hide();
ui->nameLabel->hide(); ui->nameLabel->hide();
//hide read & new not used
ui->readButton->hide();
ui->newLabel->hide();
} }
void PostedItem::makeDownVote() void PostedItem::makeDownVote()
@ -699,7 +703,7 @@ void PostedItem::setReadStatus(bool isNew, bool isUnread)
ui->readButton->setIcon(FilesDefs::getIconFromQtResourcePath(":/images/message-state-read.png")); ui->readButton->setIcon(FilesDefs::getIconFromQtResourcePath(":/images/message-state-read.png"));
} }
ui->newLabel->setVisible(isNew); //ui->newLabel->setVisible(isNew);
ui->mainFrame->setProperty("new", isNew); ui->mainFrame->setProperty("new", isNew);
ui->mainFrame->style()->unpolish(ui->mainFrame); ui->mainFrame->style()->unpolish(ui->mainFrame);