int QQuickScreenAttached::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 10;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = name(); break;
        case 1: *reinterpret_cast< int*>(_v) = width(); break;
        case 2: *reinterpret_cast< int*>(_v) = height(); break;
        case 3: *reinterpret_cast< int*>(_v) = desktopAvailableWidth(); break;
        case 4: *reinterpret_cast< int*>(_v) = desktopAvailableHeight(); break;
        case 5: *reinterpret_cast< qreal*>(_v) = logicalPixelDensity(); break;
        case 6: *reinterpret_cast< qreal*>(_v) = pixelDensity(); break;
        case 7: *reinterpret_cast< Qt::ScreenOrientation*>(_v) = primaryOrientation(); break;
        case 8: *reinterpret_cast< Qt::ScreenOrientation*>(_v) = orientation(); break;
        }
        _id -= 9;
    } else if (_c == QMetaObject::WriteProperty) {
        _id -= 9;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 9;
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        if (_id < 9)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 9;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
int QWaylandMaterialDecoration::dp(int dp) const
{
    qreal multiplier = 1.4;
    return round(dp * ((pixelDensity() * 25.4) / 160) * multiplier);
}