|
|
@ -95,11 +95,11 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa |
|
|
|
|
|
|
|
|
|
|
|
hlayout->addWidget(typeWidget); |
|
|
|
hlayout->addWidget(typeWidget); |
|
|
|
|
|
|
|
|
|
|
|
addressWidget = new QLineEdit(this); |
|
|
|
search_widget = new QLineEdit(this); |
|
|
|
#if QT_VERSION >= 0x040700 |
|
|
|
#if QT_VERSION >= 0x040700 |
|
|
|
addressWidget->setPlaceholderText(tr("Enter address or label to search")); |
|
|
|
search_widget->setPlaceholderText(tr("Enter address or label to search")); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
hlayout->addWidget(addressWidget); |
|
|
|
hlayout->addWidget(search_widget); |
|
|
|
|
|
|
|
|
|
|
|
amountWidget = new QLineEdit(this); |
|
|
|
amountWidget = new QLineEdit(this); |
|
|
|
#if QT_VERSION >= 0x040700 |
|
|
|
#if QT_VERSION >= 0x040700 |
|
|
@ -187,8 +187,8 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa |
|
|
|
connect(watchOnlyWidget, SIGNAL(activated(int)), this, SLOT(chooseWatchonly(int))); |
|
|
|
connect(watchOnlyWidget, SIGNAL(activated(int)), this, SLOT(chooseWatchonly(int))); |
|
|
|
connect(amountWidget, SIGNAL(textChanged(QString)), amount_typing_delay, SLOT(start())); |
|
|
|
connect(amountWidget, SIGNAL(textChanged(QString)), amount_typing_delay, SLOT(start())); |
|
|
|
connect(amount_typing_delay, SIGNAL(timeout()), this, SLOT(changedAmount())); |
|
|
|
connect(amount_typing_delay, SIGNAL(timeout()), this, SLOT(changedAmount())); |
|
|
|
connect(addressWidget, SIGNAL(textChanged(QString)), prefix_typing_delay, SLOT(start())); |
|
|
|
connect(search_widget, SIGNAL(textChanged(QString)), prefix_typing_delay, SLOT(start())); |
|
|
|
connect(prefix_typing_delay, SIGNAL(timeout()), this, SLOT(changedPrefix())); |
|
|
|
connect(prefix_typing_delay, SIGNAL(timeout()), this, SLOT(changedSearch())); |
|
|
|
|
|
|
|
|
|
|
|
connect(view, SIGNAL(doubleClicked(QModelIndex)), this, SIGNAL(doubleClicked(QModelIndex))); |
|
|
|
connect(view, SIGNAL(doubleClicked(QModelIndex)), this, SIGNAL(doubleClicked(QModelIndex))); |
|
|
|
connect(view, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextualMenu(QPoint))); |
|
|
|
connect(view, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextualMenu(QPoint))); |
|
|
@ -326,11 +326,11 @@ void TransactionView::chooseWatchonly(int idx) |
|
|
|
(TransactionFilterProxy::WatchOnlyFilter)watchOnlyWidget->itemData(idx).toInt()); |
|
|
|
(TransactionFilterProxy::WatchOnlyFilter)watchOnlyWidget->itemData(idx).toInt()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void TransactionView::changedPrefix() |
|
|
|
void TransactionView::changedSearch() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(!transactionProxyModel) |
|
|
|
if(!transactionProxyModel) |
|
|
|
return; |
|
|
|
return; |
|
|
|
transactionProxyModel->setAddressPrefix(addressWidget->text()); |
|
|
|
transactionProxyModel->setSearchString(search_widget->text()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void TransactionView::changedAmount() |
|
|
|
void TransactionView::changedAmount() |
|
|
|