Skip to content

Commit

Permalink
Fix QR Geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
Arielony committed Sep 15, 2018
1 parent 76fd56e commit de06ae8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Gui/MainWindow/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ MainWindow::MainWindow(ICryptoNoteAdapter* _cryptoNoteAdapter, IAddressBookManag
connect(qApp, &QGuiApplication::commitDataRequest, this, &MainWindow::commitData);


m_qrLabel->setGeometry(910,8,90,90);
m_qrLabel->setGeometry(970,8,90,90);
// m_qrLabel->setGeometry( m_ui->m_walletFrame->x() + m_ui->m_walletFrame->width() + 40,8,90,90);



// OPENS THE WALLET
m_qrLabel->showQRCode(m_walletStateModel->index(0, WalletStateModel::COLUMN_ADDRESS).data().toString());
Expand Down
8 changes: 7 additions & 1 deletion src/Gui/MainWindow/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,12 @@
</item>
<item>
<widget class="QFrame" name="m_addressQRFrame">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>1</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>50</width>
Expand All @@ -444,7 +450,7 @@
<rect>
<x>10</x>
<y>10</y>
<width>160</width>
<width>191</width>
<height>80</height>
</rect>
</property>
Expand Down
1 change: 1 addition & 0 deletions src/Gui/MainWindow/ui_MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ class Ui_MainWindow

horizontalLayout->addWidget(m_toolFrame);


m_overviewFrame = new WalletGui::OverviewFrame(centralwidget);
m_overviewFrame->setObjectName(QStringLiteral("m_overviewFrame"));
m_overviewFrame->setFrameShape(QFrame::NoFrame);
Expand Down

0 comments on commit de06ae8

Please sign in to comment.