mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 19:42:45 +01:00
Merge pull request #7279 from Techjar/qt-macos-iowindow
Qt/IOWindow: Don't set QSizePolicy::Expanding on macOS
This commit is contained in:
commit
d6833cb217
@ -78,11 +78,14 @@ void IOWindow::CreateMainLayout()
|
|||||||
m_main_layout->addLayout(range_hbox);
|
m_main_layout->addLayout(range_hbox);
|
||||||
|
|
||||||
// Options (Buttons, Outputs) and action buttons
|
// 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,
|
for (QPushButton* button : {m_select_button, m_detect_button, m_or_button, m_and_button,
|
||||||
m_add_button, m_not_button, m_test_button})
|
m_add_button, m_not_button, m_test_button})
|
||||||
{
|
{
|
||||||
button->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
button->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
auto* hbox = new QHBoxLayout();
|
auto* hbox = new QHBoxLayout();
|
||||||
auto* button_vbox = new QVBoxLayout();
|
auto* button_vbox = new QVBoxLayout();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user