mirror of
https://github.com/js8call/js8call.git
synced 2025-12-22 09:17:08 +00:00
Mostly straightforward, but Qt6 changed the audio classes quite substantially. Fortunately the wsjtx-improved team had been down this road already in terms of what needed to be changed in the audio support.
23 lines
603 B
C++
23 lines
603 B
C++
#include "Radio.hpp"
|
|
|
|
#include <QMetaType>
|
|
#include <QDebug>
|
|
#include <QDataStream>
|
|
|
|
namespace Radio
|
|
{
|
|
void register_types ()
|
|
{
|
|
qRegisterMetaType<Radio::Frequency> ("Frequency");
|
|
qRegisterMetaType<Radio::FrequencyDelta> ("FrequencyDelta");
|
|
qRegisterMetaType<Radio::Frequencies> ("Frequencies");
|
|
|
|
// This is required to preserve v1.5 "frequencies" setting for
|
|
// backwards compatibility, without it the setting gets trashed
|
|
// by later versions.
|
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
|
qRegisterMetaTypeStreamOperators<Radio::Frequencies> ("Frequencies");
|
|
#endif
|
|
}
|
|
}
|