Files
js8call/RadioMetaType.cpp
Allan Bazinet 45778cdb79 Initial port to Qt6
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.
2024-08-31 13:13:39 -07:00

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
}
}