forked from qt-creator/qt-creator
Qml2Puppet: use better standalone fix
without extra dependency Change-Id: I0bbc91c94feb84d0a0bbef8009b411ec20093079 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -3,11 +3,17 @@
|
||||
|
||||
#include "view3dactioncommand.h"
|
||||
|
||||
#include "../../utils/utility.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDataStream>
|
||||
|
||||
namespace {
|
||||
template<typename Enumeration>
|
||||
[[nodiscard]] constexpr std::underlying_type_t<Enumeration> to_underlying(Enumeration enumeration) noexcept
|
||||
{
|
||||
return static_cast<std::underlying_type_t<Enumeration>>(enumeration);
|
||||
}
|
||||
}
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
View3DActionCommand::View3DActionCommand(View3DActionType type, const QVariant &value)
|
||||
@@ -68,7 +74,7 @@ QDebug operator<<(QDebug debug, const View3DActionCommand &command)
|
||||
|
||||
QDebug operator<<(QDebug debug, View3DActionType type)
|
||||
{
|
||||
return debug.nospace() << Utils::to_underlying(type);
|
||||
return debug.nospace() << to_underlying(type);
|
||||
}
|
||||
|
||||
} // namespace QmlDesigner
|
||||
|
Reference in New Issue
Block a user