diff --git a/ground/openpilotgcs/src/libs/utils/filesearch.cpp b/ground/openpilotgcs/src/libs/utils/filesearch.cpp index 53b43a296..ff7df5072 100644 --- a/ground/openpilotgcs/src/libs/utils/filesearch.cpp +++ b/ground/openpilotgcs/src/libs/utils/filesearch.cpp @@ -43,19 +43,19 @@ using namespace Utils; static inline QString msgCanceled(const QString &searchTerm, int numMatches, int numFilesSearched) { - return QCoreApplication::translate(tr("Utils::FileSearch"), tr("%1: canceled. %n occurrences found in %2 files."), + return QCoreApplication::translate("Utils::FileSearch", "%1: canceled. %n occurrences found in %2 files.", 0, numMatches).arg(searchTerm).arg(numFilesSearched); } static inline QString msgFound(const QString &searchTerm, int numMatches, int numFilesSearched) { - return QCoreApplication::translate(tr("Utils::FileSearch"), tr("%1: %n occurrences found in %2 files."), + return QCoreApplication::translate("Utils::FileSearch", "%1: %n occurrences found in %2 files.", 0, numMatches).arg(searchTerm).arg(numFilesSearched); } static inline QString msgFound(const QString &searchTerm, int numMatches, int numFilesSearched, int filesSize) { - return QCoreApplication::translate(tr("Utils::FileSearch"), tr("%1: %n occurrences found in %2 of %3 files."), + return QCoreApplication::translate("Utils::FileSearch", "%1: %n occurrences found in %2 of %3 files.", 0, numMatches).arg(searchTerm).arg(numFilesSearched).arg(filesSize); } diff --git a/ground/openpilotgcs/src/libs/utils/xmlconfig.h b/ground/openpilotgcs/src/libs/utils/xmlconfig.h index 98345e38d..0f92f0060 100644 --- a/ground/openpilotgcs/src/libs/utils/xmlconfig.h +++ b/ground/openpilotgcs/src/libs/utils/xmlconfig.h @@ -38,6 +38,7 @@ #include class XMLCONFIG_EXPORT XmlConfig : QObject { + Q_OBJECT public: static const QSettings::Format XmlSettingsFormat;