Merge #15167: qt: Fix wallet selector size adjustment
ca91661adf
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
2 changed files with 4 additions and 0 deletions
|
@ -484,6 +484,7 @@ void BitcoinGUI::createToolBars()
|
||||||
toolbar->addWidget(spacer);
|
toolbar->addWidget(spacer);
|
||||||
|
|
||||||
m_wallet_selector = new QComboBox();
|
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);
|
connect(m_wallet_selector, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &BitcoinGUI::setCurrentWalletBySelectorIndex);
|
||||||
|
|
||||||
m_wallet_selector_label = new QLabel();
|
m_wallet_selector_label = new QLabel();
|
||||||
|
|
|
@ -453,6 +453,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="WalletSelector">
|
<widget class="QComboBox" name="WalletSelector">
|
||||||
|
<property name="sizeAdjustPolicy">
|
||||||
|
<enum>QComboBox::AdjustToContents</enum>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>(none)</string>
|
<string>(none)</string>
|
||||||
|
|
Loading…
Add table
Reference in a new issue