mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Reverse API: right click dialog on start/stop button. Apply to RTL-SDR
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "ui_rtlsdrgui.h"
|
||||
#include "gui/colormapper.h"
|
||||
#include "gui/glspectrum.h"
|
||||
#include "gui/crightclickenabler.h"
|
||||
#include "dsp/dspengine.h"
|
||||
#include "dsp/dspcommands.h"
|
||||
|
||||
@@ -63,6 +64,9 @@ RTLSDRGui::RTLSDRGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
|
||||
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection);
|
||||
m_sampleSource->setMessageQueueToGUI(&m_inputMessageQueue);
|
||||
|
||||
CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop);
|
||||
connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &)));
|
||||
}
|
||||
|
||||
RTLSDRGui::~RTLSDRGui()
|
||||
@@ -468,3 +472,10 @@ void RTLSDRGui::on_lowSampleRate_toggled(bool checked)
|
||||
qDebug("RTLSDRGui::on_lowSampleRate_toggled: %d S/s", m_settings.m_devSampleRate);
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void RTLSDRGui::openDeviceSettingsDialog(const QPoint& p)
|
||||
{
|
||||
QMessageBox m(QMessageBox::Information, tr("Message"), tr("RTLSDRGui::openDeviceSettingsDialog"));
|
||||
m.move(p);
|
||||
m.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user