Fixed dynamic channel tab allocation so that no tab is created statically in the UI

This commit is contained in:
f4exb 2015-10-08 02:40:31 +02:00
parent 43be074004
commit ea5f322cf6
2 changed files with 2 additions and 23 deletions

View File

@ -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);

View File

@ -409,21 +409,8 @@
<item>
<widget class="QTabWidget" name="tabChannels">
<property name="currentIndex">
<number>0</number>
<number>-1</number>
</property>
<widget class="ChannelWindow" name="rxChannels">
<property name="enabled">
<bool>false</bool>
</property>
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<attribute name="title">
<string>Rx</string>
</attribute>
</widget>
</widget>
</item>
</layout>
@ -510,14 +497,6 @@
<zorder>channelDock</zorder>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>ChannelWindow</class>
<extends>QWidget</extends>
<header>gui/channelwindow.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>presetTree</tabstop>
<tabstop>presetSave</tabstop>