mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 01:18:38 -05:00
MainWindow: fixed missing change feature tab handler. Change Feature UI set when feature tab changes. Fixes #1012
This commit is contained in:
parent
669ab13d20
commit
784615e3bc
@ -28,7 +28,10 @@
|
|||||||
FeaturePresetsDialog::FeaturePresetsDialog(QWidget* parent) :
|
FeaturePresetsDialog::FeaturePresetsDialog(QWidget* parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
ui(new Ui::FeaturePresetsDialog),
|
ui(new Ui::FeaturePresetsDialog),
|
||||||
m_featureSetPresets(nullptr)
|
m_featureSetPresets(nullptr),
|
||||||
|
m_featureUISet(nullptr),
|
||||||
|
m_pluginAPI(nullptr),
|
||||||
|
m_apiAdapter(nullptr)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
}
|
}
|
||||||
|
@ -230,6 +230,7 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse
|
|||||||
connect(ui->tabChannels, SIGNAL(currentChanged(int)), this, SLOT(tabChannelsIndexChanged()));
|
connect(ui->tabChannels, SIGNAL(currentChanged(int)), this, SLOT(tabChannelsIndexChanged()));
|
||||||
connect(ui->channelDock, SIGNAL(addChannel(int)), this, SLOT(channelAddClicked(int)));
|
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->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)));
|
connect(ui->featureDock, SIGNAL(addFeature(int)), this, SLOT(featureAddClicked(int)));
|
||||||
|
|
||||||
QString applicationDirPath = qApp->applicationDirPath();
|
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()
|
void MainWindow::updateStatus()
|
||||||
{
|
{
|
||||||
m_dateTimeWidget->setText(QDateTime::currentDateTime().toString("yyyy-MM-dd HH:mm:ss t"));
|
m_dateTimeWidget->setText(QDateTime::currentDateTime().toString("yyyy-MM-dd HH:mm:ss t"));
|
||||||
|
@ -190,6 +190,7 @@ private slots:
|
|||||||
void on_action_removeLastFeatureSet_triggered();
|
void on_action_removeLastFeatureSet_triggered();
|
||||||
void tabInputViewIndexChanged();
|
void tabInputViewIndexChanged();
|
||||||
void tabChannelsIndexChanged();
|
void tabChannelsIndexChanged();
|
||||||
|
void tabFeaturesIndexChanged();
|
||||||
void commandKeyPressed(Qt::Key key, Qt::KeyboardModifiers keyModifiers, bool release);
|
void commandKeyPressed(Qt::Key key, Qt::KeyboardModifiers keyModifiers, bool release);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user