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
This commit is contained in:
csoler 2010-03-25 22:07:50 +00:00
parent d4e50d09ab
commit 145c10fdbb

View File

@ -206,16 +206,14 @@ TextPage::TextPage(QWidget *parent)
userCertEdit = new QTextEdit; userCertEdit = new QTextEdit;
std::string invite = rsPeers->GetRetroshareInvite(); std::string invite = rsPeers->GetRetroshareInvite();
userCertEdit->setText(QString::fromStdString(invite));
userCertEdit->setReadOnly(true); userCertEdit->setReadOnly(true);
userCertEdit->setMinimumHeight(200); userCertEdit->setMinimumHeight(200);
userCertEdit->setMinimumWidth(530); userCertEdit->setMinimumWidth(530);
QFont font; QFont font("Courier New",10,50,false);
font.setPointSize(10); font.setStyleHint(QFont::TypeWriter,QFont::PreferMatch);
font.setBold(false); font.setStyle(QFont::StyleNormal);
font.setStyleHint(QFont::TypeWriter, QFont::PreferDefault);
//font.setWeight(75);
userCertEdit->setFont(font); userCertEdit->setFont(font);
userCertEdit->setText(QString::fromStdString(invite));
std::cerr << "TextPage() getting Invite: " << invite << std::endl; std::cerr << "TextPage() getting Invite: " << invite << std::endl;
@ -270,6 +268,9 @@ TextPage::TextPage(QWidget *parent)
friendCertEdit = new QTextEdit; friendCertEdit = new QTextEdit;
//font.setWeight(75);
friendCertEdit->setFont(font);
//=== add all widgets to one layout //=== add all widgets to one layout
textPageLayout = new QVBoxLayout(); textPageLayout = new QVBoxLayout();
textPageLayout->addWidget(userCertLabel); textPageLayout->addWidget(userCertLabel);