Основная часть рефакторинга закончена

This commit is contained in:
2020-04-22 20:59:39 +03:00
parent d6143953f6
commit f550594b85
33 changed files with 144 additions and 41 deletions

View File

@ -1,6 +1,8 @@
#ifndef MYX_QT_BACKPORTS_HPP_
#define MYX_QT_BACKPORTS_HPP_
#pragma once
#if ( defined ( TARGET_LSB_ID_AstraLinuxSE ) && defined ( TARGET_LSB_CODENAME_smolensk ) )
#define override

View File

@ -17,7 +17,7 @@ namespace myx {
namespace qt {
void append_translators( QTranslatorsList& translators, const QString& appName )
MYXLIB_INLINE void append_translators( QTranslatorsList& translators, const QString& appName )
{
auto* translator = new QTranslator( qApp );

View File

@ -1,2 +1,5 @@
#ifndef MYXLIB_BUILD_LIBRARIES
#error Define MYXLIB_BUILD_LIBRARIES to compile this file.
#endif
#include <myx/qt/translators.hpp>
#include <myx/qt/translators-inl.hpp>

View File

@ -1,5 +1,7 @@
#ifndef MYX_LOG_QT_TRANSLATORS_HPP_
#define MYX_LOG_QT_TRANSLATORS_HPP_
#ifndef MYX_QT_TRANSLATORS_HPP_
#define MYX_QT_TRANSLATORS_HPP_
#pragma once
#include <myx/base/config.hpp>
#include <myx/qt/backports.hpp>
@ -22,4 +24,4 @@ void append_translators( QTranslatorsList& translators, const QString& appName )
#include "translators-inl.hpp"
#endif
#endif // ifndef MYX_LOG_QT_TRANSLATORS_HPP_
#endif // ifndef MYX_QT_TRANSLATORS_HPP_