Skip to content
Permalink
Browse files

Merge pull request #7850 from jordan-woyak/device-and-profile-dropdow…

…n-fix

DolphinQt: Prevent contents of device and profile dropdowns from throwing off layout.
  • Loading branch information...
lioncash committed Mar 3, 2019
2 parents 2dcb703 + 031149c commit 2eb9140e07d253a584bca91638e843e654c74c08
Showing with 3 additions and 1 deletion.
  1. +3 −1 Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp
@@ -67,7 +67,9 @@ void MappingWindow::CreateDevicesLayout()
m_devices_combo = new QComboBox();
m_devices_refresh = new QPushButton(tr("Refresh"));

m_devices_combo->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
m_devices_refresh->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);

m_devices_layout->addWidget(m_devices_combo);
m_devices_layout->addWidget(m_devices_refresh);

@@ -85,7 +87,7 @@ void MappingWindow::CreateProfilesLayout()

auto* button_layout = new QHBoxLayout();

m_profiles_box->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
m_profiles_combo->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
m_profiles_combo->setEditable(true);

m_profiles_layout->addWidget(m_profiles_combo);

0 comments on commit 2eb9140

Please sign in to comment.
You can’t perform that action at this time.