diff --git a/app/audio/sampleformat.cpp b/app/audio/sampleformat.cpp index f7af19c65..27bbbb0a4 100644 --- a/app/audio/sampleformat.cpp +++ b/app/audio/sampleformat.cpp @@ -20,7 +20,7 @@ #include "sampleformat.h" -#include "core.h" +#include OLIVE_NAMESPACE_ENTER @@ -30,23 +30,23 @@ QString SampleFormat::GetSampleFormatName(const SampleFormat::Format &f) { switch (f) { case SAMPLE_FMT_U8: - return tr("Unsigned 8-bit"); + return QCoreApplication::translate("SampleFormat", "Unsigned 8-bit"); case SAMPLE_FMT_S16: - return tr("Signed 16-bit"); + return QCoreApplication::translate("SampleFormat", "Signed 16-bit"); case SAMPLE_FMT_S32: - return tr("Signed 32-bit"); + return QCoreApplication::translate("SampleFormat", "Signed 32-bit"); case SAMPLE_FMT_S64: - return tr("Signed 64-bit"); + return QCoreApplication::translate("SampleFormat", "Signed 64-bit"); case SAMPLE_FMT_FLT: - return tr("32-bit Float"); + return QCoreApplication::translate("SampleFormat", "32-bit Float"); case SAMPLE_FMT_DBL: - return tr("64-bit Float"); + return QCoreApplication::translate("SampleFormat", "64-bit Float"); case SAMPLE_FMT_COUNT: case SAMPLE_FMT_INVALID: break; } - return tr("Invalid"); + return QCoreApplication::translate("SampleFormat", "Invalid"); } OLIVE_NAMESPACE_EXIT diff --git a/app/audio/sampleformat.h b/app/audio/sampleformat.h index 8b4dd5a9f..1261d04a1 100644 --- a/app/audio/sampleformat.h +++ b/app/audio/sampleformat.h @@ -21,16 +21,14 @@ #ifndef SAMPLEFORMAT_H #define SAMPLEFORMAT_H -#include +#include #include "common/define.h" -#include "render/rendermodes.h" OLIVE_NAMESPACE_ENTER -class SampleFormat : public QObject +class SampleFormat { - Q_OBJECT public: SampleFormat() = default;