#pragma once #include #include #include #include "core/FlexLayout/flexlayout.h" #include "core/FlexLayout/flexutils.h" namespace extrautils { QVariant* convertToQVariant(Napi::Env& env, Napi::Value& value); bool isNapiValueInt(Napi::Env& env, Napi::Value& num); std::string getNapiObjectClassName(Napi::Object& object); void* configureQWidget(QWidget* widget, YGNodeRef node, bool isLeafNode = false); void* configureQObject(QObject* object); void* configureComponent(void* component); template void safeDelete(QPointer& component) { if (!component.isNull()) { delete component; } } void initAppSettings(); } // namespace extrautils