From 57e61378a2d2bd32f370113aeaa6ba9fe5b10f60 Mon Sep 17 00:00:00 2001 From: firstcryptoman Date: Mon, 6 May 2024 20:39:04 +0400 Subject: [PATCH] Adjust instantsendWidget width to be dynamic in TransactionView --- src/qt/transactionview.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index cbeb546a69..ed58fb8d8e 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -67,7 +67,6 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa headerLayout->addWidget(watchOnlyWidget); instantsendWidget = new QComboBox(this); - instantsendWidget->setFixedWidth(150); instantsendWidget->addItem(tr("All"), TransactionFilterProxy::InstantSendFilter_All); instantsendWidget->addItem(tr("Locked by InstantSend"), TransactionFilterProxy::InstantSendFilter_Yes); instantsendWidget->addItem(tr("Not locked by InstantSend"), TransactionFilterProxy::InstantSendFilter_No); @@ -729,12 +728,11 @@ void TransactionView::resizeEvent(QResizeEvent* event) // Determine widths for specific widgets as percentages of total width int comboBoxesWidgetWidth = newWidth * 0.10; int addressWidgetWidth = newWidth * 0.25; - const int minWidgetHeight = 20; - const int maxWidgetHeight = 35; dateWidget->setFixedWidth(comboBoxesWidgetWidth); typeWidget->setFixedWidth(comboBoxesWidgetWidth); amountWidget->setFixedWidth(comboBoxesWidgetWidth); + instantsendWidget->setFixedWidth(comboBoxesWidgetWidth); int tableViewHeight = newHeight - headerHeight;