1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-06 16:05:13 -04:00

MainWindow: fixed missing change feature tab handler. Change Feature UI set when feature tab changes. Fixes #1012

This commit is contained in:
f4exb
2021-10-16 11:10:21 +02:00
parent 669ab13d20
commit 784615e3bc
3 changed files with 12 additions and 1 deletions
+7
View File
@@ -230,6 +230,7 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse
connect(ui->tabChannels, SIGNAL(currentChanged(int)), this, SLOT(tabChannelsIndexChanged()));
connect(ui->channelDock, SIGNAL(addChannel(int)), this, SLOT(channelAddClicked(int)));
connect(ui->inputViewDock, SIGNAL(deviceChanged(int, int, int)), this, SLOT(samplingDeviceChanged(int, int, int)));
connect(ui->tabFeatures, SIGNAL(currentChanged(int)), this, SLOT(tabFeaturesIndexChanged()));
connect(ui->featureDock, SIGNAL(addFeature(int)), this, SLOT(featureAddClicked(int)));
QString applicationDirPath = qApp->applicationDirPath();
@@ -2287,6 +2288,12 @@ void MainWindow::tabChannelsIndexChanged()
}
}
void MainWindow::tabFeaturesIndexChanged()
{
int featuresTabIndex = ui->tabFeatures->currentIndex();
ui->featureDock->setFeatureUISet(m_featureUIs[featuresTabIndex]);
}
void MainWindow::updateStatus()
{
m_dateTimeWidget->setText(QDateTime::currentDateTime().toString("yyyy-MM-dd HH:mm:ss t"));