Fixed Reputation display, and set text Alignment.

This commit is contained in:
defnax 2015-10-17 02:23:46 +02:00
parent 8e6c7cd075
commit febea809b1
2 changed files with 6 additions and 2 deletions

View File

@ -383,7 +383,8 @@ bool IdDialog::fillIdListItem(const RsGxsIdGroup& data, QTreeWidgetItem *&item,
item->setData(RSID_COL_KEYID, Qt::UserRole,QVariant(item_flags)) ;
item->setData(RSID_COL_VOTES,Qt::DisplayRole, QString::number(info.mOverallReputationScore-1.0f));
item->setTextAlignment(RSID_COL_VOTES, Qt::AlignRight);
item->setData(RSID_COL_VOTES,Qt::DisplayRole, QString::number(info.mFriendAverage-1.0f,'f',3));
if(isOwnId)
{

View File

@ -210,7 +210,10 @@
</column>
<column>
<property name="text">
<string>Votes</string>
<string>Reputation</string>
</property>
<property name="textAlignment">
<set>AlignLeft|AlignVCenter</set>
</property>
</column>
</widget>