// This code is auto-generated by Qul's qmltocpp tool from the file 'CrashWhenBuildingInRoot.qml'
// WARNING! All changes made in this file will be lost!
#include "CrashWhenBuildingInRoot.h"
#include <qul/private/graphicsdevice.h>
#include <qul/private/filecache.h>

#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
#endif

static const Qul::Private::String qulCurrentFileDir(".", 1);
extern Qul::Private::Items::ItemBase *loaderItemAllocator(const Qul::Private::String &uri, const Qul::Private::String &currentFileDir);

namespace Qul { namespace Private {
Qul::Property<int> &translationIndexProperty_main();
extern uint32_t qul_translation_base_offset_466f8ea3805e2cf76f33035f0962292dc4a001ed();
extern const char *qul_translation_string(int lang, uint32_t base, int entry);
}}


namespace {
#if defined(QUL_CC_IAR)
#pragma diag_suppress=Pe177 // declared but never referenced
#elif defined(QUL_CC_GNU)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
static Qul::Property<int> &translationIndexProperty() { return Qul::Private::translationIndexProperty_main(); }
static int translationIndex() { return translationIndexProperty().value(); }
static const char *qul_translation(int entry) {
    const uint32_t base_offset = Qul::Private::qul_translation_base_offset_466f8ea3805e2cf76f33035f0962292dc4a001ed();
    return Qul::Private::qul_translation_string(translationIndex(), base_offset, entry);
}
#if defined(QUL_CC_IAR)
#pragma diag_default=Pe177 // declared but never referenced
#elif defined(QUL_CC_GNU)
#pragma GCC diagnostic pop
#endif
}



CrashWhenBuildingInRoot::CrashWhenBuildingInRoot()

    : ExtraStorage_itemExtraProperties_this_instance(this)
{
#if __cplusplus < 201103L || defined(QUL_CC_IAR) || (defined(QUL_CC_GHS) && (__GHS_VERSION_NUMBER == 201714 || __GHS_VERSION_NUMBER == 201954))
    // height: Constants.height
    // line 6  "CrashWhenBuildingInRoot.qml"
    height.setValue(480);
    // width: Constants.width
    // line 5  "CrashWhenBuildingInRoot.qml"
    width.setValue(640);
#else
    using OffsetType14508472848368190223 = Qul::Private::Choose<uint16_t, uint32_t, (UINT16_MAX >
        Qul::Private::Max<offsetof(CrashWhenBuildingInRoot, height) / 4,
        Qul::Private::Max<offsetof(CrashWhenBuildingInRoot, width) / 4,
        0
        >::V>::V
        )>::Type;
    OffsetType14508472848368190223 propertyOffsets14508472848368190223[] = {
        std::is_same<decltype(height), Qul::Property<int>>::value ? (offsetof(CrashWhenBuildingInRoot, height) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
        std::is_same<decltype(width), Qul::Property<int>>::value ? (offsetof(CrashWhenBuildingInRoot, width) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
    };
    static constexpr int16_t propertyValues14508472848368190223[] = {
        // height: Constants.height
        // line 6  "CrashWhenBuildingInRoot.qml"
        480,
        // width: Constants.width
        // line 5  "CrashWhenBuildingInRoot.qml"
        640,
    };
    Qul::Private::initializeProperties<int>(this, propertyOffsets14508472848368190223, propertyValues14508472848368190223,
        sizeof(propertyOffsets14508472848368190223) / sizeof(propertyOffsets14508472848368190223[0]));
    // height: Constants.height
    // line 6  "CrashWhenBuildingInRoot.qml"
    if (!std::is_same<decltype(height), Qul::Property<int>>::value)
        height.setValue(480);
    // width: Constants.width
    // line 5  "CrashWhenBuildingInRoot.qml"
    if (!std::is_same<decltype(width), Qul::Property<int>>::value)
        width.setValue(640);
#endif
    // Screen01 {
    // line 8  "CrashWhenBuildingInRoot.qml"
    appendChild(this, &screen01);
}

