1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 14:34:57 -04:00

Fixed passing QPoint reference from right click enabler to connected method. Fixes #1549

This commit is contained in:
f4exb
2022-12-28 20:33:28 +01:00
parent 12deb59bf4
commit f45e949e62
49 changed files with 160 additions and 110 deletions
+6 -4
View File
@@ -456,10 +456,10 @@ SSBModGUI::SSBModGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSam
connect(&MainCore::instance()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick()));
CRightClickEnabler *audioMuteRightClickEnabler = new CRightClickEnabler(ui->mic);
connect(audioMuteRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(audioSelect()));
connect(audioMuteRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(audioSelect(const QPoint &)));
CRightClickEnabler *feedbackRightClickEnabler = new CRightClickEnabler(ui->feedbackEnable);
connect(feedbackRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(audioFeedbackSelect()));
connect(feedbackRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(audioFeedbackSelect(const QPoint &)));
ui->deltaFrequencyLabel->setText(QString("%1f").arg(QChar(0x94, 0x03)));
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
@@ -754,10 +754,11 @@ void SSBModGUI::enterEvent(EnterEventType* event)
ChannelGUI::enterEvent(event);
}
void SSBModGUI::audioSelect()
void SSBModGUI::audioSelect(const QPoint& p)
{
qDebug("SSBModGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
audioSelect.move(p);
audioSelect.exec();
if (audioSelect.m_selected)
@@ -767,10 +768,11 @@ void SSBModGUI::audioSelect()
}
}
void SSBModGUI::audioFeedbackSelect()
void SSBModGUI::audioFeedbackSelect(const QPoint& p)
{
qDebug("SSBModGUI::audioFeedbackSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
audioSelect.move(p);
audioSelect.exec();
if (audioSelect.m_selected)