Skip to content

Commit

Permalink
Allow the speed and zoom widgets to expand as necessary
Browse files Browse the repository at this point in the history
This should hopefully address some of the layout issues on Windows 11 where their text was cut off

Bug: #495, #497
  • Loading branch information
cameronwhite committed Nov 19, 2024
1 parent 4e6b83a commit c8cb9e1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Thanks to the following contributors who worked on this release:
- Fixed AppStream validation issues in `xdg/powertabeditor.metainfo.xml`
- Fixed a bug which could prevent barlines from being deleted (#496)
- Fixed errors with saving files in the Snap or Flatpak packages (#498)
- Fixed sizing issues in the playback widget on Windows (#495, #497)

## [2.0.20] - 2024-11-03

Expand Down
34 changes: 17 additions & 17 deletions source/widgets/playback/playbackwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>933</width>
<width>969</width>
<height>38</height>
</rect>
</property>
Expand All @@ -15,7 +15,7 @@
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="sizeConstraint">
<enum>QLayout::SetMinimumSize</enum>
<enum>QLayout::SizeConstraint::SetMinimumSize</enum>
</property>
<property name="leftMargin">
<number>9</number>
Expand All @@ -39,7 +39,7 @@
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
Expand Down Expand Up @@ -83,7 +83,7 @@
<item>
<widget class="Line" name="line2">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
Expand All @@ -96,8 +96,14 @@
</item>
<item>
<widget class="QSpinBox" name="speedSpinner">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
<enum>Qt::FocusPolicy::StrongFocus</enum>
</property>
<property name="toolTip">
<string>Adjusts the current playback speed.</string>
Expand All @@ -107,7 +113,7 @@
<item>
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
Expand Down Expand Up @@ -165,7 +171,7 @@
<item>
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
Expand All @@ -179,32 +185,26 @@
<item>
<widget class="QComboBox" name="zoomComboBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>16777215</height>
</size>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="currentIndex">
<number>6</number>
<number>-1</number>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContentsOnFirstShow</enum>
<enum>QComboBox::SizeAdjustPolicy::AdjustToContentsOnFirstShow</enum>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line1">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
Expand Down

0 comments on commit c8cb9e1

Please sign in to comment.