diff options
author | Simon Rettberg | 2022-09-01 16:01:29 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-09-01 16:01:29 +0200 |
commit | 4174e5bf93a7a9bdadd2675fc94d145debe9fd6f (patch) | |
tree | d3613621b2364e7a37d4750cc1c752717bfaf747 /src/mainwindow.cpp | |
parent | WIP: Support input too (diff) | |
download | pavucontrol-slx-4174e5bf93a7a9bdadd2675fc94d145debe9fd6f.tar.gz pavucontrol-slx-4174e5bf93a7a9bdadd2675fc94d145debe9fd6f.tar.xz pavucontrol-slx-4174e5bf93a7a9bdadd2675fc94d145debe9fd6f.zip |
TabView -> two colums [Output, Input]
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0fc6341..83b999e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -10,8 +10,12 @@ MainWindow::MainWindow() : QDialog() { setupUi(this); setWindowFlags(Qt::WindowStaysOnTopHint | windowFlags()); - outputTab->setLayout(new QVBoxLayout(outputTab)); - inputTab->setLayout(new QVBoxLayout(inputTab)); + // Make heading 20% larger than system default + QFont f = inputLabel->font(); + f.setPointSize(f.pointSize() * 6 / 5); + inputLabel->setFont(f); + outputLabel->setFont(f); + cardLabel->setFont(f); } MainWindow::~MainWindow() @@ -86,9 +90,9 @@ void MainWindow::insertItemWidget(SlxOutput* w, bool isDevice) if (w->type() == SlxOutput::CardProfileItem) { container = cards; } else if (w->type() == SlxOutput::SinkPortItem) { - container = qobject_cast<QBoxLayout*>(outputTab->layout()); + container = outputListLayout; } else { - container = qobject_cast<QBoxLayout*>(inputTab->layout()); + container = inputListLayout; } for (idx = 0; idx < container->count(); ++idx) { auto *l = container->itemAt(idx); |