qt: Fix Recent transactions list height (#3744)

* qt: Bring back setMinimumHeight for recent tx list

This partially reverts a3604f5

Turns out that we still need this at least on Windows (not sure why but tx list looks clipped there atm)

* Reduce number of items in recent tx list by 1 (for PS enabled cases only)

Most users will never see immature funds and the list is going to be too long for them most of the time
This commit is contained in:
UdjinM6 2020-09-28 17:07:31 +03:00 committed by xdustinface
parent 12d0782071
commit 586f166499

View File

@ -26,8 +26,8 @@
#define ITEM_HEIGHT 54
#define NUM_ITEMS_DISABLED 5
#define NUM_ITEMS_ENABLED_NORMAL 7
#define NUM_ITEMS_ENABLED_ADVANCED 9
#define NUM_ITEMS_ENABLED_NORMAL 6
#define NUM_ITEMS_ENABLED_ADVANCED 8
class TxViewDelegate : public QAbstractItemDelegate
{
@ -677,6 +677,7 @@ void OverviewPage::SetupTransactionList(int nNumItems)
}
filter->setLimit(nNumItems);
ui->listTransactions->setMinimumHeight(nNumItems * ITEM_HEIGHT);
}
void OverviewPage::DisablePrivateSendCompletely() {