when clicking a transaction on the overview page, send the user to the transactions page
This commit is contained in:
parent
186f3e2f0c
commit
1b39201966
3 changed files with 15 additions and 4 deletions
|
@ -154,6 +154,9 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
|
||||||
|
|
||||||
syncIconMovie = new QMovie(":/movies/update_spinner", "mng", this);
|
syncIconMovie = new QMovie(":/movies/update_spinner", "mng", this);
|
||||||
|
|
||||||
|
// Clicking on a transaction simply sends you to transaction history page
|
||||||
|
connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), this, SLOT(gotoHistoryPage()));
|
||||||
|
|
||||||
gotoOverviewPage();
|
gotoOverviewPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -103,9 +103,9 @@ OverviewPage::OverviewPage(QWidget *parent) :
|
||||||
ui->labelBalance->setToolTip(tr("Your current balance"));
|
ui->labelBalance->setToolTip(tr("Your current balance"));
|
||||||
ui->labelBalance->setTextInteractionFlags(Qt::TextSelectableByMouse|Qt::TextSelectableByKeyboard);
|
ui->labelBalance->setTextInteractionFlags(Qt::TextSelectableByMouse|Qt::TextSelectableByKeyboard);
|
||||||
|
|
||||||
// Balance: <balance>
|
// Unconfirmed balance: <balance>
|
||||||
ui->labelUnconfirmed->setFont(QFont("Monospace", -1, QFont::Bold));
|
ui->labelUnconfirmed->setFont(QFont("Monospace", -1, QFont::Bold));
|
||||||
ui->labelUnconfirmed->setToolTip(tr("Balance of transactions that have yet to be confirmed"));
|
ui->labelUnconfirmed->setToolTip(tr("Total of transactions that have yet to be confirmed, and do not yet count toward the current balance"));
|
||||||
ui->labelUnconfirmed->setTextInteractionFlags(Qt::TextSelectableByMouse|Qt::TextSelectableByKeyboard);
|
ui->labelUnconfirmed->setTextInteractionFlags(Qt::TextSelectableByMouse|Qt::TextSelectableByKeyboard);
|
||||||
|
|
||||||
ui->labelNumTransactions->setToolTip(tr("Total number of transactions in wallet"));
|
ui->labelNumTransactions->setToolTip(tr("Total number of transactions in wallet"));
|
||||||
|
@ -116,6 +116,8 @@ OverviewPage::OverviewPage(QWidget *parent) :
|
||||||
ui->listTransactions->setIconSize(QSize(DECORATION_SIZE, DECORATION_SIZE));
|
ui->listTransactions->setIconSize(QSize(DECORATION_SIZE, DECORATION_SIZE));
|
||||||
ui->listTransactions->setSelectionMode(QAbstractItemView::NoSelection);
|
ui->listTransactions->setSelectionMode(QAbstractItemView::NoSelection);
|
||||||
ui->listTransactions->setMinimumHeight(NUM_ITEMS * (DECORATION_SIZE + 2));
|
ui->listTransactions->setMinimumHeight(NUM_ITEMS * (DECORATION_SIZE + 2));
|
||||||
|
|
||||||
|
connect(ui->listTransactions, SIGNAL(clicked(QModelIndex)), this, SIGNAL(transactionClicked(QModelIndex)));
|
||||||
}
|
}
|
||||||
|
|
||||||
OverviewPage::~OverviewPage()
|
OverviewPage::~OverviewPage()
|
||||||
|
@ -142,7 +144,6 @@ void OverviewPage::setModel(WalletModel *model)
|
||||||
this->model = model;
|
this->model = model;
|
||||||
|
|
||||||
// Set up transaction list
|
// Set up transaction list
|
||||||
|
|
||||||
TransactionFilterProxy *filter = new TransactionFilterProxy();
|
TransactionFilterProxy *filter = new TransactionFilterProxy();
|
||||||
filter->setSourceModel(model->getTransactionTableModel());
|
filter->setSourceModel(model->getTransactionTableModel());
|
||||||
filter->setLimit(NUM_ITEMS);
|
filter->setLimit(NUM_ITEMS);
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
class QModelIndex;
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class OverviewPage;
|
class OverviewPage;
|
||||||
}
|
}
|
||||||
|
@ -23,6 +27,9 @@ public slots:
|
||||||
void setBalance(qint64 balance, qint64 unconfirmedBalance);
|
void setBalance(qint64 balance, qint64 unconfirmedBalance);
|
||||||
void setNumTransactions(int count);
|
void setNumTransactions(int count);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void transactionClicked(const QModelIndex &index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::OverviewPage *ui;
|
Ui::OverviewPage *ui;
|
||||||
WalletModel *model;
|
WalletModel *model;
|
||||||
|
|
Loading…
Reference in a new issue