fixed fnt size problems in global router stats window

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8558 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-06-26 18:33:03 +00:00
parent a53a7525c0
commit 765e2a15ed

View File

@ -156,8 +156,9 @@ void GlobalRouterStatisticsWidget::updateContent()
painter.setPen(QColor::fromRgb(0,0,0)) ;
QFont times_f(font());//"Times") ;
QFont monospace_f(font());//"Monospace") ;
QFont monospace_f("Monospace") ;
monospace_f.setStyleHint(QFont::TypeWriter) ;
monospace_f.setPointSize(font().pointSize()) ;
QFontMetricsF fm_monospace(monospace_f) ;
QFontMetricsF fm_times(times_f) ;
@ -214,7 +215,7 @@ void GlobalRouterStatisticsWidget::updateContent()
for(int i=0;i<cache_infos.size();++i)
{
std::vector<QString> strings;
strings.push_back( QString::number(cache_infos[i].mid,16) ) ;
strings.push_back( QString::number(cache_infos[i].mid,16).rightJustified(16,'0') ) ;
strings.push_back( QString::fromStdString(cache_infos[i].destination.toStdString()) ) ;
//for(std::set<RsPeerId>::const_iterator it(cache_infos[i].local_origin.begin());it!=cache_infos[i].local_origin.end();++it)