mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-29 00:27:27 -04:00
Merge pull request #1943 from PhenomRetroShare/Fix_RsElidedItemDelegateStyleSheet
Fix RSElidedItemDelegate to use StyleSheet as default but defined colors
This commit is contained in:
commit
fd6b69bcac
14 changed files with 301 additions and 203 deletions
|
@ -616,10 +616,12 @@ void ChatLobbyDialog::updateParticipantsList()
|
|||
else
|
||||
widgetitem = dynamic_cast<GxsIdRSTreeWidgetItem*>(qlFoundParticipants.at(0));
|
||||
|
||||
//TODO (Phenom): Add qproperty for these text colors in stylesheets
|
||||
// As palette is not updated by stylesheet
|
||||
if (isParticipantMuted(it2->first)) {
|
||||
widgetitem->setTextColor(COLUMN_NAME,QColor(255,0,0));
|
||||
widgetitem->setData(COLUMN_NAME, Qt::ForegroundRole, QColor(255,0,0));
|
||||
} else {
|
||||
widgetitem->setTextColor(COLUMN_NAME,ui.participantsList->palette().color(QPalette::Active, QPalette::Text));
|
||||
widgetitem->setData(COLUMN_NAME, Qt::ForegroundRole, QVariant());
|
||||
}
|
||||
|
||||
time_t tLastAct=widgetitem->text(COLUMN_ACTIVITY).toInt();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue