UI: Use spacers instead of widgets in macOS Permissions UI

The macOS Permissions dialog was using empty widgets to force other
widgets into position. Instead, use horizontal spacers.
This commit is contained in:
Ryan Foster 2024-04-02 20:03:34 -04:00
parent 206af52467
commit 28d7d4fe60

View file

@ -145,7 +145,17 @@
<number>25</number>
</property>
<item>
<widget class="QWidget"/>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="capturePermissionButton">
@ -211,7 +221,17 @@
<number>25</number>
</property>
<item>
<widget class="QWidget"/>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="videoPermissionButton">
@ -274,7 +294,17 @@
<number>25</number>
</property>
<item>
<widget class="QWidget"/>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="audioPermissionButton">
@ -340,7 +370,17 @@
<number>25</number>
</property>
<item>
<widget class="QWidget"/>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="accessibilityPermissionButton">