Browse Source

cleanup

recurring
adityapk00 6 years ago
parent
commit
bccb3d674a
  1. 57
      src/mainwindow.ui
  2. 7
      src/sendtab.cpp
  3. 1
      src/senttxstore.cpp

57
src/mainwindow.ui

@ -22,7 +22,7 @@
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>2</number>
<number>1</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
@ -656,56 +656,63 @@
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<layout class="QVBoxLayout" name="verticalLayout_10">
<item>
<widget class="QPlainTextEdit" name="txtRecieve">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<item row="1" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Label</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="rcvLabel">
<property name="maxLength">
<number>40</number>
</property>
</widget>
</item>
<item row="0" column="2">
<item row="1" column="2">
<widget class="QPushButton" name="rcvUpdateLabel">
<property name="text">
<string>Update Label</string>
</property>
</widget>
</item>
<item row="1" column="0">
<item row="2" column="0">
<widget class="QLabel" name="label_21">
<property name="text">
<string>Address Balance</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<item row="1" column="1">
<widget class="QLineEdit" name="rcvLabel">
<property name="maxLength">
<number>40</number>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="QLabel" name="rcvBal">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QPlainTextEdit" name="txtRecieve">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Address</string>
</property>
</widget>
</item>
</layout>
</item>
<item>

7
src/sendtab.cpp

@ -45,10 +45,7 @@ void MainWindow::setupSendTab() {
this->memoButtonClicked(1);
});
setMemoEnabled(1, false);
// Hack to equalize the sizes of the Memo and Address buttons
ui->MemoBtn1->setFixedWidth(ui->AddressBook1->width());
// This is the damnest thing ever. If we do AddressBook::readFromStorage() directly, the whole file
// doesn't get read. It needs to run in a timer after everything has finished to be able to read
// the file properly.
@ -222,8 +219,6 @@ void MainWindow::addAddressSection() {
});
horizontalLayout_13->addWidget(MemoBtn1);
setMemoEnabled(itemNumber, false);
// Hack to equalize the sizes of the Memo and Address buttons
MemoBtn1->setFixedWidth(addressBook1->width());
sendAddressLayout->addLayout(horizontalLayout_13);

1
src/senttxstore.cpp

@ -20,6 +20,7 @@ QString SentTxStore::writeableFile() {
void SentTxStore::deleteHistory() {
QFile data(writeableFile());
data.remove();
data.close();
}
QList<TransactionItem> SentTxStore::readSentTxFile() {

Loading…
Cancel
Save