Merge pull request #4239 from sjm1835/patch-1
Moodbar-Trackslider uses the full available height
This commit is contained in:
commit
213fb2cfb6
@ -98,6 +98,12 @@ void MoodbarProxyStyle::SetMoodbarEnabled(bool enabled) {
|
||||
void MoodbarProxyStyle::NextState() {
|
||||
const bool visible = enabled_ && !data_.isEmpty();
|
||||
|
||||
// While the regular slider should stay at the standard size (Fixed),
|
||||
// moodbars should use all available space (MinimumExpanding).
|
||||
slider_->setSizePolicy(QSizePolicy::Expanding,
|
||||
visible ? QSizePolicy::MinimumExpanding : QSizePolicy::Fixed);
|
||||
slider_->updateGeometry();
|
||||
|
||||
if (show_moodbar_action_) {
|
||||
show_moodbar_action_->setChecked(enabled_);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user