summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index f70f0be..2d09504 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -6,9 +6,6 @@
#include <PulseAudioQt/Card>
#include <PulseAudioQt/Profile>
-#include <QShowEvent>
-#include <QDesktopWidget>
-
MainWindow::MainWindow() : QDialog()
{
setupUi(this);
@@ -27,16 +24,6 @@ MainWindow::~MainWindow()
}
-void MainWindow::showEvent(QShowEvent *)
-{
- int height = qApp->desktop()->size().height();
- int off = height / 12;
- if (off < 70) {
- off = 70;
- }
- this->sac->setMaximumHeight(height - off);
-}
-
SlxOutput* MainWindow::getDevice(const PulseAudioQt::Card *card, const PulseAudioQt::Device *device, const PulseAudioQt::Port *port, bool output)
{
PulseAudioQt::Profile *profile = nullptr;
@@ -47,7 +34,7 @@ SlxOutput* MainWindow::getDevice(const PulseAudioQt::Card *card, const PulseAudi
if (card != nullptr) {
cardId = card->name();
- if ((int)card->activeProfileIndex() < card->profiles().size()) {
+ if (card->activeProfileIndex() < card->profiles().size()) {
profile = card->profiles().at(card->activeProfileIndex());
heading.append(QLatin1String(" (")).append(profile->description()).append(QLatin1String(")"));
}
@@ -95,7 +82,7 @@ SlxOutput* MainWindow::getCardPort(const PulseAudioQt::Card *card, const PulseAu
return w;
}
-void MainWindow::insertItemWidget(SlxOutput* w, bool)
+void MainWindow::insertItemWidget(SlxOutput* w, bool isDevice)
{
bool done = false;
int idx;