mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-20 04:36:08 +01:00
[qt] Use fixed pitch font for the rpc console
Also: * Preserve white space * Make fixed font as large as default font
This commit is contained in:
@@ -88,7 +88,7 @@ QString dateTimeStr(qint64 nTime)
|
||||
return dateTimeStr(QDateTime::fromTime_t((qint32)nTime));
|
||||
}
|
||||
|
||||
QFont bitcoinAddressFont()
|
||||
QFont fixedPitchFont()
|
||||
{
|
||||
QFont font("Monospace");
|
||||
#if QT_VERSION >= 0x040800
|
||||
@@ -103,7 +103,7 @@ void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
|
||||
{
|
||||
parent->setFocusProxy(widget);
|
||||
|
||||
widget->setFont(bitcoinAddressFont());
|
||||
widget->setFont(fixedPitchFont());
|
||||
#if QT_VERSION >= 0x040700
|
||||
// We don't want translators to use own addresses in translations
|
||||
// and this is the only place, where this address is supplied.
|
||||
|
||||
Reference in New Issue
Block a user