From 145c10fdbb53d30b6140dd60394285257ee12701 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 25 Mar 2010 22:07:50 +0000 Subject: [PATCH] restored the courier new font, to allow the user to quickly vizualize errors in the keys (and to make the display less messy) git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2634 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- .../src/gui/connect/ConnectFriendWizard.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp b/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp index 10c5f0d1c..b0f292f79 100755 --- a/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp +++ b/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp @@ -206,16 +206,14 @@ TextPage::TextPage(QWidget *parent) userCertEdit = new QTextEdit; std::string invite = rsPeers->GetRetroshareInvite(); - userCertEdit->setText(QString::fromStdString(invite)); userCertEdit->setReadOnly(true); userCertEdit->setMinimumHeight(200); userCertEdit->setMinimumWidth(530); - QFont font; - font.setPointSize(10); - font.setBold(false); - font.setStyleHint(QFont::TypeWriter, QFont::PreferDefault); - //font.setWeight(75); + QFont font("Courier New",10,50,false); + font.setStyleHint(QFont::TypeWriter,QFont::PreferMatch); + font.setStyle(QFont::StyleNormal); userCertEdit->setFont(font); + userCertEdit->setText(QString::fromStdString(invite)); std::cerr << "TextPage() getting Invite: " << invite << std::endl; @@ -270,6 +268,9 @@ TextPage::TextPage(QWidget *parent) friendCertEdit = new QTextEdit; + //font.setWeight(75); + friendCertEdit->setFont(font); + //=== add all widgets to one layout textPageLayout = new QVBoxLayout(); textPageLayout->addWidget(userCertLabel);