mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-24 23:52:00 +02:00
Merge #15167: qt: Fix wallet selector size adjustment
ca91661adf9fa22bf1c919d118de27bfac04e94c Fix wallet selector size adjustment (Hennadii Stepanov) Pull request description: This PR sets `QComboBox::AdjustToContents` instead of default `QComboBox::AdjustToContentsOnFirstShow` for wallet selectors. Before (in master):  After (with this PR):  Tree-SHA512: c23ac91905bb31aaa32f2fccc02b01f5707d8b094020fe6a75a9e099e78f9191670474920234a01c46480f67d3d311f44ff46f1f4202cd50a4a6d4d09a8342ce
This commit is contained in:
commit
0f1576ab32
@ -484,6 +484,7 @@ void BitcoinGUI::createToolBars()
|
||||
toolbar->addWidget(spacer);
|
||||
|
||||
m_wallet_selector = new QComboBox();
|
||||
m_wallet_selector->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
connect(m_wallet_selector, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &BitcoinGUI::setCurrentWalletBySelectorIndex);
|
||||
|
||||
m_wallet_selector_label = new QLabel();
|
||||
|
@ -453,6 +453,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="WalletSelector">
|
||||
<property name="sizeAdjustPolicy">
|
||||
<enum>QComboBox::AdjustToContents</enum>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>(none)</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user