1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-02 13:17:48 -04:00

Added set samplerate

This commit is contained in:
f4exb 2015-06-24 00:01:48 +02:00
parent 40848f141a
commit f2af402087
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,7 @@ public:
void setBuddies(MessageQueue* messageQueue, ScopeVis* scopeVis, GLScope* glScope);
void setSampleRate(int sampleRate);
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);

View File

@ -37,6 +37,12 @@ void GLScopeGUI::setBuddies(MessageQueue* messageQueue, ScopeVis* scopeVis, GLSc
applySettings();
}
void GLScopeGUI::setSampleRate(int sampleRate)
{
m_sampleRate = sampleRate;
on_scope_traceSizeChanged(0);
}
void GLScopeGUI::resetToDefaults()
{
m_displayData = GLScope::ModeIQ;