From 3c6868af26828d7d8164b670ea8087f4534d5c8a Mon Sep 17 00:00:00 2001 From: Reyoking <66134480+Reyoking@users.noreply.github.com> Date: Mon, 1 Mar 2021 20:59:59 -0600 Subject: [PATCH] Update qpicospeaker.cpp Fixed slider glitches on Ubuntu. --- src/qpicospeaker.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/qpicospeaker.cpp b/src/qpicospeaker.cpp index b89b122..38748ae 100644 --- a/src/qpicospeaker.cpp +++ b/src/qpicospeaker.cpp @@ -254,20 +254,20 @@ void QPicoSpeaker::resizeEvent(QResizeEvent* e) { ui->tePlay->geometry().y() - 5); ui->saSliders->resize(this->width() - 20, ui->saSliders->height()); - ui->hsSpeed->resize(ui->saSliders->width() - 170, ui->saSliders->height()); + ui->hsSpeed->resize(ui->saSliders->width() - 148, ui->saSliders->height() - 101); qd.dockRight(ui->lblSpeedVal, ui->hsSpeed, - QDocker::VerticalPos::AlignTop, 10); + QDocker::VerticalPos::AlignTop, 8); - ui->hsVolume->resize(ui->saSliders->width() - 170, - ui->saSliders->height()); + ui->hsVolume->resize(ui->saSliders->width() - 148, + ui->saSliders->height() - 101); qd.dockRight(ui->lblVolumeVal, ui->hsVolume, - QDocker::VerticalPos::AlignTop, 10); + QDocker::VerticalPos::AlignTop, 8); - ui->hsPitch->resize(ui->saSliders->width() - 170, ui->saSliders->height()); + ui->hsPitch->resize(ui->saSliders->width() - 148, ui->saSliders->height() - 101); qd.dockRight(ui->lblPitchVal, ui->hsPitch, - QDocker::VerticalPos::AlignTop, 10); + QDocker::VerticalPos::AlignTop, 8); qd.dockCorner(ui->lblInputDesc, QDocker::TopLeft, 10, 5); qd.dockBelow(ui->tePlay, ui->lblInputDesc,