From 7aad1a1ea9525ac9fa11fcc0b2c07d8deb700bea Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 7 Mar 2023 14:46:46 +0100 Subject: Move card/profile to right to "solve" space problems --- src/mainwindow.cpp | 2 +- src/mainwindow.ui | 59 +++++++++++++++++++++++++++++++----------------------- src/slxoutput.cpp | 1 + 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2d09504..21bfbbe 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -34,7 +34,7 @@ SlxOutput* MainWindow::getDevice(const PulseAudioQt::Card *card, const PulseAudi if (card != nullptr) { cardId = card->name(); - if (card->activeProfileIndex() < card->profiles().size()) { + if ((int)card->activeProfileIndex() < card->profiles().size()) { profile = card->profiles().at(card->activeProfileIndex()); heading.append(QLatin1String(" (")).append(profile->description()).append(QLatin1String(")")); } diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 03e1aae..df6499f 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -22,7 +22,6 @@ - 75 true @@ -55,7 +54,6 @@ - 75 true @@ -82,31 +80,42 @@ + + + + Qt::Vertical + + + + + + + + + Card/Profile + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + - - - - Card/Profile - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - diff --git a/src/slxoutput.cpp b/src/slxoutput.cpp index 637ffc3..c538165 100644 --- a/src/slxoutput.cpp +++ b/src/slxoutput.cpp @@ -44,6 +44,7 @@ SlxOutput::SlxOutput(ItemType type, const QString &id, }); } else { volumeSlider->setEnabled(false); + volumeSlider->setVisible(false); muteToggleButton->setEnabled(false); } nameLabel->setText(title); -- cgit v1.2.3-55-g7522