Skip to content

Commit

Permalink
Adjust instantsendWidget width to be dynamic in TransactionView
Browse files Browse the repository at this point in the history
  • Loading branch information
firstcryptoman committed May 6, 2024
1 parent 7d71311 commit 57e6137
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 57e6137

Please sign in to comment.