diff options
| author | Techjar <tecknojar@gmail.com> | 2018-07-17 14:35:56 -0400 |
|---|---|---|
| committer | Techjar <tecknojar@gmail.com> | 2018-07-17 14:35:56 -0400 |
| commit | 44aa3cdc0f11349bbc7ffa4e11eb2a2a213326ac (patch) | |
| tree | 19510cb02b1b1f64c10f85e60fa1975ff3067234 | |
| parent | 98c7b232c4117414c80b97bcc8f704d448817b47 (diff) | |
Qt/IOWindow: Don't set QSizePolicy::Expanding on macOS
| -rw-r--r-- | Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp b/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp index 6647df8d7c..bc5c9501cc 100644 --- a/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp +++ b/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(); |
