1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -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
+3 -2
View File
@@ -175,7 +175,7 @@ SimplePTTGUI::SimplePTTGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Fea
connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &)));
connect(getInputMessageQueue(), SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
CRightClickEnabler *voxRightClickEnabler = new CRightClickEnabler(ui->vox);
connect(voxRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(audioSelect()));
connect(voxRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(audioSelect(const QPoint &)));
connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
m_statusTimer.start(500);
@@ -500,10 +500,11 @@ void SimplePTTGUI::applyPTT(bool tx)
}
}
void SimplePTTGUI::audioSelect()
void SimplePTTGUI::audioSelect(const QPoint& p)
{
qDebug("SimplePTTGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true);
audioSelect.move(p);
audioSelect.exec();
if (audioSelect.m_selected)