From 765e2a15edd35e44a69fde5fbd06094205bf3ece Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 26 Jun 2015 18:33:03 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/statistics/GlobalRouterStatistics.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/statistics/GlobalRouterStatistics.cpp b/retroshare-gui/src/gui/statistics/GlobalRouterStatistics.cpp index ea48a2727..21bebe336 100644 --- a/retroshare-gui/src/gui/statistics/GlobalRouterStatistics.cpp +++ b/retroshare-gui/src/gui/statistics/GlobalRouterStatistics.cpp @@ -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 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::const_iterator it(cache_infos[i].local_origin.begin());it!=cache_infos[i].local_origin.end();++it)