mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-12 09:24:26 -05:00
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:
parent
d4e50d09ab
commit
145c10fdbb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user