mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-20 21:29:01 -04:00
Fix RSElidedItemDelegate to use StyleSheet as default but defined colors
if they are. If none, use Base Delegate.
This commit is contained in:
parent
4f25ab3fe8
commit
384ae46706
14 changed files with 301 additions and 203 deletions
|
@ -717,7 +717,7 @@ void FriendList::insertPeers()
|
|||
groupItem->setChildIndicatorPolicy(QTreeWidgetItem::DontShowIndicatorWhenChildless);
|
||||
groupItem->setTextAlignment(COLUMN_NAME, Qt::AlignLeft | Qt::AlignVCenter);
|
||||
groupItem->setIcon(COLUMN_NAME, QIcon(IMAGE_GROUP24));
|
||||
groupItem->setForeground(COLUMN_NAME, QBrush(textColorGroup()));
|
||||
groupItem->setData(COLUMN_NAME, Qt::ForegroundRole, textColorGroup());
|
||||
|
||||
/* used to find back the item */
|
||||
QString strID = QString::fromStdString(groupInfo->id.toStdString());
|
||||
|
@ -1110,8 +1110,8 @@ void FriendList::insertPeers()
|
|||
for (int i = 0; i < columnCount; ++i) {
|
||||
sslItem->setData(i, ROLE_SORT_STATE, peerState);
|
||||
|
||||
sslItem->setTextColor(i, sslColor);
|
||||
sslItem->setFont(i, sslFont);
|
||||
sslItem->setData(i, Qt::ForegroundRole, sslColor);
|
||||
sslItem->setData(i, Qt::FontRole, sslFont);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1222,8 +1222,8 @@ void FriendList::insertPeers()
|
|||
for (int i = 0; i < columnCount; ++i) {
|
||||
gpgItem->setData(i, ROLE_SORT_STATE, bestPeerState);
|
||||
|
||||
gpgItem->setTextColor(i, gpgColor);
|
||||
gpgItem->setFont(i, gpgFont);
|
||||
gpgItem->setData(i, Qt::ForegroundRole, gpgColor);
|
||||
gpgItem->setData(i, Qt::FontRole, gpgFont);
|
||||
}
|
||||
|
||||
if (openPeers.find(gpgId) != openPeers.end()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue