Permalink
Browse files

Merge pull request #7279 from Techjar/qt-macos-iowindow

Qt/IOWindow: Don't set QSizePolicy::Expanding on macOS
  • Loading branch information...
spycrab committed Jul 21, 2018
2 parents c141511 + 44aa3cd commit d6833cb217e65f54f3b91ab7ae5b4426d4724909
Showing with 3 additions and 0 deletions.
  1. +3 −0 Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp
@@ -78,11 +78,14 @@ void IOWindow::CreateMainLayout()
m_main_layout->addLayout(range_hbox);
// Options (Buttons, Outputs) and action buttons
// macOS style doesn't support expanding buttons
#ifndef __APPLE__
for (QPushButton* button : {m_select_button, m_detect_button, m_or_button, m_and_button,
m_add_button, m_not_button, m_test_button})
{
button->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
}
#endif
auto* hbox = new QHBoxLayout();
auto* button_vbox = new QVBoxLayout();

0 comments on commit d6833cb

Please sign in to comment.