Fix wallet selector size adjustment

This commit is contained in:
Hennadii Stepanov 2019-01-14 20:49:19 +02:00
parent 035f349371
commit ca91661adf
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F
2 changed files with 4 additions and 0 deletions

View File

@ -485,6 +485,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();

View File

@ -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>