mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 07:41:20 -04:00
Merge pull request #1954 from defnax/Attachment-quickview
Added to use the tag colors as icon
This commit is contained in:
commit
76420a33bf
1 changed files with 3 additions and 1 deletions
|
@ -461,10 +461,12 @@ void MessagesDialog::fillQuickView()
|
|||
|
||||
for (tag = tags.types.begin(); tag != tags.types.end(); ++tag) {
|
||||
text = TagDefs::name(tag->first, tag->second.first);
|
||||
QPixmap tagpixmap(18,18);
|
||||
tagpixmap.fill(QColor(tag->second.second));
|
||||
|
||||
item = new QListWidgetItem (text, ui.quickViewWidget);
|
||||
item->setData(Qt::ForegroundRole, QColor(tag->second.second));
|
||||
item->setIcon(QIcon(":/images/foldermail.png"));
|
||||
item->setIcon(tagpixmap);
|
||||
item->setData(ROLE_QUICKVIEW_TYPE, QUICKVIEW_TYPE_TAG);
|
||||
item->setData(ROLE_QUICKVIEW_ID, tag->first);
|
||||
item->setData(ROLE_QUICKVIEW_TEXT, text); // for updateMessageSummaryList
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue