@@ -113,12 +113,12 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
113
113
114
114
hlayout->addWidget (typeWidget);
115
115
116
- addressWidget = new QLineEdit (this );
116
+ search_widget = new QLineEdit (this );
117
117
#if QT_VERSION >= 0x040700
118
- addressWidget ->setPlaceholderText (tr (" Enter address or label to search" ));
118
+ search_widget ->setPlaceholderText (tr (" Enter address, transaction id, or label to search" ));
119
119
#endif
120
120
addressWidget->setObjectName (" addressWidget" );
121
- hlayout->addWidget (addressWidget );
121
+ hlayout->addWidget (search_widget );
122
122
123
123
amountWidget = new QLineEdit (this );
124
124
#if QT_VERSION >= 0x040700
@@ -128,7 +128,7 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
128
128
amountWidget->setFixedWidth (118 );
129
129
} else {
130
130
amountWidget->setFixedWidth (125 );
131
- }
131
+ }
132
132
amountWidget->setValidator (new QDoubleValidator (0 , 1e20 , 8 , this ));
133
133
amountWidget->setObjectName (" amountWidget" );
134
134
hlayout->addWidget (amountWidget);
@@ -207,8 +207,8 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
207
207
connect (instantsendWidget, SIGNAL (activated (int )), this , SLOT (chooseInstantSend (int )));
208
208
connect (amountWidget, SIGNAL (textChanged (QString)), amount_typing_delay, SLOT (start ()));
209
209
connect (amount_typing_delay, SIGNAL (timeout ()), this , SLOT (changedAmount ()));
210
- connect (addressWidget , SIGNAL (textChanged (QString)), prefix_typing_delay, SLOT (start ()));
211
- connect (prefix_typing_delay, SIGNAL (timeout ()), this , SLOT (changedPrefix ()));
210
+ connect (search_widget , SIGNAL (textChanged (QString)), prefix_typing_delay, SLOT (start ()));
211
+ connect (prefix_typing_delay, SIGNAL (timeout ()), this , SLOT (changedSearch ()));
212
212
213
213
connect (view, SIGNAL (doubleClicked (QModelIndex)), this , SIGNAL (doubleClicked (QModelIndex)));
214
214
connect (view, SIGNAL (clicked (QModelIndex)), this , SLOT (computeSum ()));
@@ -285,7 +285,7 @@ void TransactionView::setModel(WalletModel *_model)
285
285
286
286
// Watch-only signal
287
287
connect (_model, SIGNAL (notifyWatchonlyChanged (bool )), this , SLOT (updateWatchOnlyColumn (bool )));
288
-
288
+
289
289
// Update transaction list with persisted settings
290
290
chooseType (settings.value (" transactionType" ).toInt ());
291
291
chooseDate (settings.value (" transactionDate" ).toInt ());
@@ -296,7 +296,7 @@ void TransactionView::chooseDate(int idx)
296
296
{
297
297
if (!transactionProxyModel)
298
298
return ;
299
-
299
+
300
300
QSettings settings;
301
301
QDate current = QDate::currentDate ();
302
302
dateRangeWidget->setVisible (false );
@@ -375,11 +375,11 @@ void TransactionView::chooseInstantSend(int idx)
375
375
(TransactionFilterProxy::InstantSendFilter)instantsendWidget->itemData (idx).toInt ());
376
376
}
377
377
378
- void TransactionView::changedPrefix ()
378
+ void TransactionView::changedSearch ()
379
379
{
380
380
if (!transactionProxyModel)
381
381
return ;
382
- transactionProxyModel->setAddressPrefix (addressWidget ->text ());
382
+ transactionProxyModel->setSearchString (search_widget ->text ());
383
383
}
384
384
385
385
void TransactionView::changedAmount ()
@@ -615,7 +615,7 @@ QWidget *TransactionView::createDateRangeWidget()
615
615
QString defaultDateFrom = QDate::currentDate ().toString (PERSISTENCE_DATE_FORMAT);
616
616
QString defaultDateTo = QDate::currentDate ().addDays (1 ).toString (PERSISTENCE_DATE_FORMAT);
617
617
QSettings settings;
618
-
618
+
619
619
dateRangeWidget = new QFrame ();
620
620
dateRangeWidget->setFrameStyle (QFrame::Panel | QFrame::Raised);
621
621
dateRangeWidget->setContentsMargins (1 ,1 ,1 ,1 );
@@ -656,12 +656,12 @@ void TransactionView::dateRangeChanged()
656
656
{
657
657
if (!transactionProxyModel)
658
658
return ;
659
-
659
+
660
660
// Persist new date range
661
661
QSettings settings;
662
662
settings.setValue (" transactionDateFrom" , dateFrom->date ().toString (PERSISTENCE_DATE_FORMAT));
663
663
settings.setValue (" transactionDateTo" , dateTo->date ().toString (PERSISTENCE_DATE_FORMAT));
664
-
664
+
665
665
transactionProxyModel->setDateRange (
666
666
QDateTime (dateFrom->date ()),
667
667
QDateTime (dateTo->date ()));
0 commit comments