From 3a0e944ecfe699cb7c4e1b472939370af063e169 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 24 Sep 2014 21:00:40 +0000 Subject: [PATCH] fixed fonts for IDs in Identities git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7560 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/Identity/IdDialog.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/Identity/IdDialog.cpp b/retroshare-gui/src/gui/Identity/IdDialog.cpp index c6b0a4f95..3c88a129d 100644 --- a/retroshare-gui/src/gui/Identity/IdDialog.cpp +++ b/retroshare-gui/src/gui/Identity/IdDialog.cpp @@ -312,17 +312,25 @@ bool IdDialog::fillIdListItem(const RsGxsIdGroup& data, QTreeWidgetItem *&item, item->setText(RSID_COL_NICKNAME, QString::fromUtf8(data.mMeta.mGroupName.c_str())); item->setText(RSID_COL_KEYID, QString::fromStdString(data.mMeta.mGroupId.toStdString())); + QFont font("Courier New",10,50,false); + font.setStyleHint(QFont::TypeWriter,QFont::PreferMatch); + item->setFont(RSID_COL_KEYID,font) ; + if(isOwnId) { QFont font = item->font(RSID_COL_NICKNAME) ; font.setWeight(QFont::Bold) ; item->setFont(RSID_COL_NICKNAME,font) ; - item->setFont(RSID_COL_KEYID,font) ; item->setFont(RSID_COL_IDTYPE,font) ; + font = item->font(RSID_COL_KEYID) ; + font.setWeight(QFont::Bold) ; + item->setFont(RSID_COL_KEYID,font) ; + item->setToolTip(RSID_COL_NICKNAME,tr("This identity is owned by you")) ; item->setToolTip(RSID_COL_KEYID ,tr("This identity is owned by you")) ; item->setToolTip(RSID_COL_IDTYPE ,tr("This identity is owned by you")) ; + } QPixmap pixmap = QPixmap::fromImage(GxsIdDetails::makeDefaultIcon(RsGxsId(data.mMeta.mGroupId))) ;