Основная часть рефакторинга закончена
This commit is contained in:
@ -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
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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_
|
||||
|
Reference in New Issue
Block a user