mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-08 19:08:46 -05:00
Added to use the tag colors as icon
This commit is contained in:
parent
f96f1cf8b1
commit
b3caf76c4b
@ -461,10 +461,12 @@ void MessagesDialog::fillQuickView()
|
|||||||
|
|
||||||
for (tag = tags.types.begin(); tag != tags.types.end(); ++tag) {
|
for (tag = tags.types.begin(); tag != tags.types.end(); ++tag) {
|
||||||
text = TagDefs::name(tag->first, tag->second.first);
|
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 = new QListWidgetItem (text, ui.quickViewWidget);
|
||||||
item->setData(Qt::ForegroundRole, QColor(tag->second.second));
|
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_TYPE, QUICKVIEW_TYPE_TAG);
|
||||||
item->setData(ROLE_QUICKVIEW_ID, tag->first);
|
item->setData(ROLE_QUICKVIEW_ID, tag->first);
|
||||||
item->setData(ROLE_QUICKVIEW_TEXT, text); // for updateMessageSummaryList
|
item->setData(ROLE_QUICKVIEW_TEXT, text); // for updateMessageSummaryList
|
||||||
|
Loading…
x
Reference in New Issue
Block a user