From ea5f322cf6880fad3b93559c1633ec85ad5bddf5 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 8 Oct 2015 02:40:31 +0200 Subject: [PATCH] Fixed dynamic channel tab allocation so that no tab is created statically in the UI --- sdrbase/mainwindow.cpp | 2 +- sdrbase/mainwindow.ui | 23 +---------------------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/sdrbase/mainwindow.cpp b/sdrbase/mainwindow.cpp index 867c1f4f1..e31a92e7a 100644 --- a/sdrbase/mainwindow.cpp +++ b/sdrbase/mainwindow.cpp @@ -29,6 +29,7 @@ #include "gui/preferencesdialog.h" #include "gui/aboutdialog.h" #include "gui/rollupwidget.h" +#include "gui/channelwindow.h" #include "dsp/dspengine.h" #include "dsp/spectrumvis.h" #include "dsp/filesink.h" @@ -115,7 +116,6 @@ MainWindow::MainWindow(QWidget* parent) : ui->tabSpectraGUI->addTab(m_deviceUIs.back()->m_spectrumGUI, "X0"); m_dspEngine->addSink(m_deviceUIs.back()->m_spectrumVis); ui->tabChannels->addTab(m_deviceUIs.back()->m_channelWindow, "X0"); - ui->tabChannels->removeTab(0); bool sampleSourceSignalsBlocked = m_deviceUIs.back()->m_sampleSource->blockSignals(true); m_pluginManager->fillSampleSourceSelector(m_deviceUIs.back()->m_sampleSource); m_deviceUIs.back()->m_sampleSource->blockSignals(sampleSourceSignalsBlocked); diff --git a/sdrbase/mainwindow.ui b/sdrbase/mainwindow.ui index f60b104a6..31d08496e 100644 --- a/sdrbase/mainwindow.ui +++ b/sdrbase/mainwindow.ui @@ -409,21 +409,8 @@ - 0 + -1 - - - false - - - - 8 - - - - Rx - - @@ -510,14 +497,6 @@ channelDock - - - ChannelWindow - QWidget -
gui/channelwindow.h
- 1 -
-
presetTree presetSave