Skip to content

Commit

Permalink
Fix windows font issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapk00 committed Oct 19, 2018
1 parent 18209ad commit d7f6d2a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/sendtab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ void MainWindow::setupSendTab() {
amountChanged(1, text);
});

// Font for the first Memo label
QFont f = ui->Address1->font();
f.setPointSize(f.pointSize() - 1);
ui->MemoTxt1->setFont(f);

// Set up focus enter to set fees
QObject::connect(ui->tabWidget, &QTabWidget::currentChanged, [=] (int pos) {
if (pos == 1) {
Expand Down Expand Up @@ -171,8 +176,8 @@ void MainWindow::addAddressSection() {

auto MemoTxt1 = new QLabel(verticalGroupBox);
MemoTxt1->setObjectName(QString("MemoTxt") % QString::number(itemNumber));
QFont font1;
font1.setPointSize(10);
QFont font1 = Address1->font();
font1.setPointSize(font1.pointSize()-1);
MemoTxt1->setFont(font1);
sendAddressLayout->addWidget(MemoTxt1);

Expand Down Expand Up @@ -394,16 +399,16 @@ void MainWindow::sendButton() {
auto AmtUSD = new QLabel(confirm.sendToAddrs);
AmtUSD->setObjectName(QString("AmtUSD") % QString::number(i + 1));
AmtUSD->setText(Settings::getInstance()->getUSDFormat(toAddr.amount));
Amt->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter);
AmtUSD->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter);
confirm.gridLayout->addWidget(AmtUSD, i*2, 2, 1, 1);

// Memo
if (toAddr.addr.startsWith("z")) {
auto Memo = new QLabel(confirm.sendToAddrs);
Memo->setObjectName(QStringLiteral("Memo") % QString::number(i + 1));
Memo->setText(toAddr.txtMemo);
QFont font1;
font1.setPointSize(10);
QFont font1 = Addr->font();
font1.setPointSize(font1.pointSize() - 1);
Memo->setFont(font1);

confirm.gridLayout->addWidget(Memo, (i*2)+1, 0, 1, 3);
Expand Down

0 comments on commit d7f6d2a

Please sign in to comment.