diff options
-rw-r--r-- | src/mainwindow.cpp | 2 | ||||
-rw-r--r-- | src/mainwindow.ui | 59 | ||||
-rw-r--r-- | 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 @@ <widget class="QLabel" name="outputLabel"> <property name="font"> <font> - <weight>75</weight> <bold>true</bold> </font> </property> @@ -55,7 +54,6 @@ <widget class="QLabel" name="inputLabel"> <property name="font"> <font> - <weight>75</weight> <bold>true</bold> </font> </property> @@ -82,31 +80,42 @@ </item> </layout> </item> + <item> + <widget class="Line" name="line"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_4"> + <item> + <widget class="QLabel" name="cardLabel"> + <property name="text"> + <string>Card/Profile</string> + </property> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="cards"/> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> </layout> </item> - <item> - <widget class="QLabel" name="cardLabel"> - <property name="text"> - <string>Card/Profile</string> - </property> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="cards"/> - </item> - <item> - <spacer name="verticalSpacer"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> </layout> </widget> <resources/> 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); |