|
|
@ -20,12 +20,9 @@ |
|
|
|
#include <QLineEdit> |
|
|
|
#include <QLineEdit> |
|
|
|
#include <QTableView> |
|
|
|
#include <QTableView> |
|
|
|
#include <QHeaderView> |
|
|
|
#include <QHeaderView> |
|
|
|
#include <QPushButton> |
|
|
|
|
|
|
|
#include <QMessageBox> |
|
|
|
#include <QMessageBox> |
|
|
|
#include <QPoint> |
|
|
|
#include <QPoint> |
|
|
|
#include <QMenu> |
|
|
|
#include <QMenu> |
|
|
|
#include <QApplication> |
|
|
|
|
|
|
|
#include <QClipboard> |
|
|
|
|
|
|
|
#include <QLabel> |
|
|
|
#include <QLabel> |
|
|
|
#include <QDateTimeEdit> |
|
|
|
#include <QDateTimeEdit> |
|
|
|
|
|
|
|
|
|
|
@ -173,16 +170,11 @@ void TransactionView::setModel(WalletModel *model) |
|
|
|
transactionView->sortByColumn(TransactionTableModel::Status, Qt::DescendingOrder); |
|
|
|
transactionView->sortByColumn(TransactionTableModel::Status, Qt::DescendingOrder); |
|
|
|
transactionView->verticalHeader()->hide(); |
|
|
|
transactionView->verticalHeader()->hide(); |
|
|
|
|
|
|
|
|
|
|
|
transactionView->horizontalHeader()->resizeSection( |
|
|
|
transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Status, 23); |
|
|
|
TransactionTableModel::Status, 23); |
|
|
|
transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Date, 120); |
|
|
|
transactionView->horizontalHeader()->resizeSection( |
|
|
|
transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Type, 120); |
|
|
|
TransactionTableModel::Date, 120); |
|
|
|
transactionView->horizontalHeader()->setResizeMode(TransactionTableModel::ToAddress, QHeaderView::Stretch); |
|
|
|
transactionView->horizontalHeader()->resizeSection( |
|
|
|
transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Amount, 100); |
|
|
|
TransactionTableModel::Type, 120); |
|
|
|
|
|
|
|
transactionView->horizontalHeader()->setResizeMode( |
|
|
|
|
|
|
|
TransactionTableModel::ToAddress, QHeaderView::Stretch); |
|
|
|
|
|
|
|
transactionView->horizontalHeader()->resizeSection( |
|
|
|
|
|
|
|
TransactionTableModel::Amount, 100); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|