fix for uncaught exception
This commit is contained in:
parent
feef6c13b9
commit
599290bf97
@ -5,8 +5,8 @@
|
||||
'qt_home_dir': '<!(echo $QN_QT_HOME_DIR)',
|
||||
},
|
||||
'target_defaults': {
|
||||
"cflags!": ["-fno-exceptions"],
|
||||
"cflags_cc!": ["-fno-exceptions"],
|
||||
'cflags!': ['-fno-exceptions'],
|
||||
'cflags_cc!': ['-fno-exceptions'],
|
||||
'sources': [],
|
||||
'includes': [],
|
||||
'include_dirs': [
|
||||
@ -18,8 +18,12 @@
|
||||
'defines': ['NAPI_CPP_EXCEPTIONS'],
|
||||
'target_conditions': [
|
||||
['OS=="mac"', {
|
||||
'cflags+': ['-fvisibility=hidden'],
|
||||
'xcode_settings': {
|
||||
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
|
||||
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
|
||||
'CLANG_CXX_LIBRARY': 'libc++',
|
||||
'MACOSX_DEPLOYMENT_TARGET': '10.7',
|
||||
},
|
||||
'include_dirs': [
|
||||
# install qt via homebrew only
|
||||
@ -36,11 +40,6 @@
|
||||
'<(qt_home_dir)/lib/QtWidgets.framework/QtWidgets',
|
||||
'<(qt_home_dir)/lib/QtPrintSupport.framework/QtPrintSupport',
|
||||
],
|
||||
# 'link_settings': {
|
||||
# 'libraries': [
|
||||
# '-Wl,-rpath,<(qt_home_dir)/lib/',
|
||||
# ],
|
||||
# },
|
||||
}],
|
||||
['OS=="linux"', {
|
||||
'cflags': [
|
||||
@ -56,6 +55,7 @@
|
||||
['OS=="win"', {
|
||||
'msvs_settings': {
|
||||
'VCCLCompilerTool': {
|
||||
'ExceptionHandling': 1,
|
||||
'AdditionalOptions': [
|
||||
'/GR-',
|
||||
'/MT',
|
||||
|
||||
12
demo.ts
12
demo.ts
@ -56,8 +56,7 @@ const testFlexLayout = () => {
|
||||
view.setStyleSheet(
|
||||
`
|
||||
background-color: green;
|
||||
qproperty-flex: 1;
|
||||
qproperty-alignItems: center;
|
||||
qproperty-alignItems:center;
|
||||
qproperty-justifyContent:center;
|
||||
`
|
||||
);
|
||||
@ -67,7 +66,10 @@ const testFlexLayout = () => {
|
||||
|
||||
const label = new QLabel();
|
||||
label.setText("Hello12321");
|
||||
label.setStyleSheet("background-color:blue; color:white;");
|
||||
label.setStyleSheet(`
|
||||
background-color:blue;
|
||||
color:white;
|
||||
`);
|
||||
|
||||
flayout.addWidget(label, label.getFlexNode());
|
||||
|
||||
@ -77,5 +79,5 @@ const testFlexLayout = () => {
|
||||
return win;
|
||||
};
|
||||
|
||||
(global as any).win1 = testGridLayout(); //to keep gc from collecting
|
||||
// (global as any).win2 = testFlexLayout(); //to keep gc from collecting
|
||||
// (global as any).win1 = testGridLayout(); //to keep gc from collecting
|
||||
(global as any).win2 = testFlexLayout(); //to keep gc from collecting
|
||||
|
||||
@ -21,8 +21,8 @@ QT_BEGIN_MOC_NAMESPACE
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
struct qt_meta_stringdata_NWidget_t {
|
||||
QByteArrayData data[1];
|
||||
char stringdata0[8];
|
||||
QByteArrayData data[45];
|
||||
char stringdata0[485];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
@ -31,10 +31,67 @@ struct qt_meta_stringdata_NWidget_t {
|
||||
)
|
||||
static const qt_meta_stringdata_NWidget_t qt_meta_stringdata_NWidget = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 7) // "NWidget"
|
||||
QT_MOC_LITERAL(0, 0, 7), // "NWidget"
|
||||
QT_MOC_LITERAL(1, 8, 7), // "display"
|
||||
QT_MOC_LITERAL(2, 16, 10), // "alignItems"
|
||||
QT_MOC_LITERAL(3, 27, 12), // "alignContent"
|
||||
QT_MOC_LITERAL(4, 40, 9), // "alignSelf"
|
||||
QT_MOC_LITERAL(5, 50, 14), // "justifyContent"
|
||||
QT_MOC_LITERAL(6, 65, 9), // "direction"
|
||||
QT_MOC_LITERAL(7, 75, 13), // "flexDirection"
|
||||
QT_MOC_LITERAL(8, 89, 8), // "overflow"
|
||||
QT_MOC_LITERAL(9, 98, 8), // "position"
|
||||
QT_MOC_LITERAL(10, 107, 8), // "flexWrap"
|
||||
QT_MOC_LITERAL(11, 116, 4), // "flex"
|
||||
QT_MOC_LITERAL(12, 121, 8), // "flexGrow"
|
||||
QT_MOC_LITERAL(13, 130, 10), // "flexShrink"
|
||||
QT_MOC_LITERAL(14, 141, 11), // "aspectRatio"
|
||||
QT_MOC_LITERAL(15, 153, 3), // "top"
|
||||
QT_MOC_LITERAL(16, 157, 5), // "right"
|
||||
QT_MOC_LITERAL(17, 163, 6), // "bottom"
|
||||
QT_MOC_LITERAL(18, 170, 4), // "left"
|
||||
QT_MOC_LITERAL(19, 175, 9), // "flexBasis"
|
||||
QT_MOC_LITERAL(20, 185, 8), // "minWidth"
|
||||
QT_MOC_LITERAL(21, 194, 9), // "minHeight"
|
||||
QT_MOC_LITERAL(22, 204, 8), // "maxWidth"
|
||||
QT_MOC_LITERAL(23, 213, 9), // "maxHeight"
|
||||
QT_MOC_LITERAL(24, 223, 10), // "paddingTop"
|
||||
QT_MOC_LITERAL(25, 234, 12), // "paddingRight"
|
||||
QT_MOC_LITERAL(26, 247, 13), // "paddingBottom"
|
||||
QT_MOC_LITERAL(27, 261, 11), // "paddingLeft"
|
||||
QT_MOC_LITERAL(28, 273, 17), // "paddingHorizontal"
|
||||
QT_MOC_LITERAL(29, 291, 15), // "paddingVertical"
|
||||
QT_MOC_LITERAL(30, 307, 7), // "padding"
|
||||
QT_MOC_LITERAL(31, 315, 9), // "marginTop"
|
||||
QT_MOC_LITERAL(32, 325, 11), // "marginRight"
|
||||
QT_MOC_LITERAL(33, 337, 12), // "marginBottom"
|
||||
QT_MOC_LITERAL(34, 350, 10), // "marginLeft"
|
||||
QT_MOC_LITERAL(35, 361, 16), // "marginHorizontal"
|
||||
QT_MOC_LITERAL(36, 378, 14), // "marginVertical"
|
||||
QT_MOC_LITERAL(37, 393, 6), // "margin"
|
||||
QT_MOC_LITERAL(38, 400, 9), // "borderTop"
|
||||
QT_MOC_LITERAL(39, 410, 11), // "borderRight"
|
||||
QT_MOC_LITERAL(40, 422, 12), // "borderBottom"
|
||||
QT_MOC_LITERAL(41, 435, 10), // "borderLeft"
|
||||
QT_MOC_LITERAL(42, 446, 16), // "borderHorizontal"
|
||||
QT_MOC_LITERAL(43, 463, 14), // "borderVertical"
|
||||
QT_MOC_LITERAL(44, 478, 6) // "border"
|
||||
|
||||
},
|
||||
"NWidget"
|
||||
"NWidget\0display\0alignItems\0alignContent\0"
|
||||
"alignSelf\0justifyContent\0direction\0"
|
||||
"flexDirection\0overflow\0position\0"
|
||||
"flexWrap\0flex\0flexGrow\0flexShrink\0"
|
||||
"aspectRatio\0top\0right\0bottom\0left\0"
|
||||
"flexBasis\0minWidth\0minHeight\0maxWidth\0"
|
||||
"maxHeight\0paddingTop\0paddingRight\0"
|
||||
"paddingBottom\0paddingLeft\0paddingHorizontal\0"
|
||||
"paddingVertical\0padding\0marginTop\0"
|
||||
"marginRight\0marginBottom\0marginLeft\0"
|
||||
"marginHorizontal\0marginVertical\0margin\0"
|
||||
"borderTop\0borderRight\0borderBottom\0"
|
||||
"borderLeft\0borderHorizontal\0borderVertical\0"
|
||||
"border"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
@ -45,17 +102,170 @@ static const uint qt_meta_data_NWidget[] = {
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
44, 14, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
// properties: name, type, flags
|
||||
1, QMetaType::QString, 0x00095003,
|
||||
2, QMetaType::QString, 0x00095003,
|
||||
3, QMetaType::QString, 0x00095003,
|
||||
4, QMetaType::QString, 0x00095003,
|
||||
5, QMetaType::QString, 0x00095003,
|
||||
6, QMetaType::QString, 0x00095003,
|
||||
7, QMetaType::QString, 0x00095003,
|
||||
8, QMetaType::QString, 0x00095003,
|
||||
9, QMetaType::QString, 0x00095003,
|
||||
10, QMetaType::QString, 0x00095003,
|
||||
11, QMetaType::Float, 0x00095003,
|
||||
12, QMetaType::Float, 0x00095003,
|
||||
13, QMetaType::Float, 0x00095003,
|
||||
14, QMetaType::Float, 0x00095003,
|
||||
15, QMetaType::QString, 0x00095003,
|
||||
16, QMetaType::QString, 0x00095003,
|
||||
17, QMetaType::QString, 0x00095003,
|
||||
18, QMetaType::QString, 0x00095003,
|
||||
19, QMetaType::QString, 0x00095003,
|
||||
20, QMetaType::QString, 0x00095003,
|
||||
21, QMetaType::QString, 0x00095003,
|
||||
22, QMetaType::QString, 0x00095003,
|
||||
23, QMetaType::QString, 0x00095003,
|
||||
24, QMetaType::QString, 0x00095003,
|
||||
25, QMetaType::QString, 0x00095003,
|
||||
26, QMetaType::QString, 0x00095003,
|
||||
27, QMetaType::QString, 0x00095003,
|
||||
28, QMetaType::QString, 0x00095003,
|
||||
29, QMetaType::QString, 0x00095003,
|
||||
30, QMetaType::QString, 0x00095003,
|
||||
31, QMetaType::QString, 0x00095003,
|
||||
32, QMetaType::QString, 0x00095003,
|
||||
33, QMetaType::QString, 0x00095003,
|
||||
34, QMetaType::QString, 0x00095003,
|
||||
35, QMetaType::QString, 0x00095003,
|
||||
36, QMetaType::QString, 0x00095003,
|
||||
37, QMetaType::QString, 0x00095003,
|
||||
38, QMetaType::Float, 0x00095003,
|
||||
39, QMetaType::Float, 0x00095003,
|
||||
40, QMetaType::Float, 0x00095003,
|
||||
41, QMetaType::Float, 0x00095003,
|
||||
42, QMetaType::Float, 0x00095003,
|
||||
43, QMetaType::Float, 0x00095003,
|
||||
44, QMetaType::Float, 0x00095003,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void NWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
|
||||
#ifndef QT_NO_PROPERTIES
|
||||
if (_c == QMetaObject::ReadProperty) {
|
||||
auto *_t = static_cast<NWidget *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
void *_v = _a[0];
|
||||
switch (_id) {
|
||||
case 0: *reinterpret_cast< QString*>(_v) = _t->_yDisplay; break;
|
||||
case 1: *reinterpret_cast< QString*>(_v) = _t->_yAlignItems; break;
|
||||
case 2: *reinterpret_cast< QString*>(_v) = _t->_yAlignContent; break;
|
||||
case 3: *reinterpret_cast< QString*>(_v) = _t->_yAlignSelf; break;
|
||||
case 4: *reinterpret_cast< QString*>(_v) = _t->_yJustifyContent; break;
|
||||
case 5: *reinterpret_cast< QString*>(_v) = _t->_yDirection; break;
|
||||
case 6: *reinterpret_cast< QString*>(_v) = _t->_yFlexDirection; break;
|
||||
case 7: *reinterpret_cast< QString*>(_v) = _t->_yOverflow; break;
|
||||
case 8: *reinterpret_cast< QString*>(_v) = _t->_yPosition; break;
|
||||
case 9: *reinterpret_cast< QString*>(_v) = _t->_yFlexWrap; break;
|
||||
case 10: *reinterpret_cast< float*>(_v) = _t->_yFlex; break;
|
||||
case 11: *reinterpret_cast< float*>(_v) = _t->_yFlexGrow; break;
|
||||
case 12: *reinterpret_cast< float*>(_v) = _t->_yFlexShrink; break;
|
||||
case 13: *reinterpret_cast< float*>(_v) = _t->_yAspectRatio; break;
|
||||
case 14: *reinterpret_cast< QString*>(_v) = _t->_yTop; break;
|
||||
case 15: *reinterpret_cast< QString*>(_v) = _t->_yRight; break;
|
||||
case 16: *reinterpret_cast< QString*>(_v) = _t->_yBottom; break;
|
||||
case 17: *reinterpret_cast< QString*>(_v) = _t->_yLeft; break;
|
||||
case 18: *reinterpret_cast< QString*>(_v) = _t->_yFlexBasis; break;
|
||||
case 19: *reinterpret_cast< QString*>(_v) = _t->_yMinWidth; break;
|
||||
case 20: *reinterpret_cast< QString*>(_v) = _t->_yMinHeight; break;
|
||||
case 21: *reinterpret_cast< QString*>(_v) = _t->_yMaxWidth; break;
|
||||
case 22: *reinterpret_cast< QString*>(_v) = _t->_yMaxHeight; break;
|
||||
case 23: *reinterpret_cast< QString*>(_v) = _t->_yPaddingTop; break;
|
||||
case 24: *reinterpret_cast< QString*>(_v) = _t->_yPaddingRight; break;
|
||||
case 25: *reinterpret_cast< QString*>(_v) = _t->_yPaddingBottom; break;
|
||||
case 26: *reinterpret_cast< QString*>(_v) = _t->_yPaddingLeft; break;
|
||||
case 27: *reinterpret_cast< QString*>(_v) = _t->_yPaddingHorizontal; break;
|
||||
case 28: *reinterpret_cast< QString*>(_v) = _t->_yPaddingVertical; break;
|
||||
case 29: *reinterpret_cast< QString*>(_v) = _t->_yPadding; break;
|
||||
case 30: *reinterpret_cast< QString*>(_v) = _t->_yMarginTop; break;
|
||||
case 31: *reinterpret_cast< QString*>(_v) = _t->_yMarginRight; break;
|
||||
case 32: *reinterpret_cast< QString*>(_v) = _t->_yMarginBottom; break;
|
||||
case 33: *reinterpret_cast< QString*>(_v) = _t->_yMarginLeft; break;
|
||||
case 34: *reinterpret_cast< QString*>(_v) = _t->_yMarginHorizontal; break;
|
||||
case 35: *reinterpret_cast< QString*>(_v) = _t->_yMarginVertical; break;
|
||||
case 36: *reinterpret_cast< QString*>(_v) = _t->_yMargin; break;
|
||||
case 37: *reinterpret_cast< float*>(_v) = _t->_yBorderTop; break;
|
||||
case 38: *reinterpret_cast< float*>(_v) = _t->_yBorderRight; break;
|
||||
case 39: *reinterpret_cast< float*>(_v) = _t->_yBorderBottom; break;
|
||||
case 40: *reinterpret_cast< float*>(_v) = _t->_yBorderLeft; break;
|
||||
case 41: *reinterpret_cast< float*>(_v) = _t->_yBorderHorizontal; break;
|
||||
case 42: *reinterpret_cast< float*>(_v) = _t->_yBorderVertical; break;
|
||||
case 43: *reinterpret_cast< float*>(_v) = _t->_yBorder; break;
|
||||
default: break;
|
||||
}
|
||||
} else if (_c == QMetaObject::WriteProperty) {
|
||||
auto *_t = static_cast<NWidget *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
void *_v = _a[0];
|
||||
switch (_id) {
|
||||
case 0: _t->setYDisplay(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 1: _t->setYAlignItems(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 2: _t->setYAlignContent(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 3: _t->setYAlignSelf(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 4: _t->setYJustifyContent(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 5: _t->setYDirection(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 6: _t->setYFlexDirection(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 7: _t->setYOverflow(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 8: _t->setYPosition(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 9: _t->setYFlexWrap(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 10: _t->setYFlex(*reinterpret_cast< float*>(_v)); break;
|
||||
case 11: _t->setYFlexGrow(*reinterpret_cast< float*>(_v)); break;
|
||||
case 12: _t->setYFlexShrink(*reinterpret_cast< float*>(_v)); break;
|
||||
case 13: _t->setYAspectRatio(*reinterpret_cast< float*>(_v)); break;
|
||||
case 14: _t->setYNodeTop(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 15: _t->setYNodeRight(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 16: _t->setYNodeBottom(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 17: _t->setYNodeLeft(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 18: _t->setYFlexBasis(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 19: _t->setYMinWidth(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 20: _t->setYMinHeight(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 21: _t->setYMaxWidth(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 22: _t->setYMaxHeight(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 23: _t->setYPaddingTop(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 24: _t->setYPaddingRight(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 25: _t->setYPaddingBottom(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 26: _t->setYPaddingLeft(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 27: _t->setYPaddingHorizontal(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 28: _t->setYPaddingVertical(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 29: _t->setYPadding(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 30: _t->setYMarginTop(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 31: _t->setYMarginRight(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 32: _t->setYMarginBottom(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 33: _t->setYMarginLeft(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 34: _t->setYMarginHorizontal(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 35: _t->setYMarginVertical(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 36: _t->setYMarginAll(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 37: _t->setYBorderTop(*reinterpret_cast< float*>(_v)); break;
|
||||
case 38: _t->setYBorderRight(*reinterpret_cast< float*>(_v)); break;
|
||||
case 39: _t->setYBorderBottom(*reinterpret_cast< float*>(_v)); break;
|
||||
case 40: _t->setYBorderLeft(*reinterpret_cast< float*>(_v)); break;
|
||||
case 41: _t->setYBorderHorizontal(*reinterpret_cast< float*>(_v)); break;
|
||||
case 42: _t->setYBorderVertical(*reinterpret_cast< float*>(_v)); break;
|
||||
case 43: _t->setYBorder(*reinterpret_cast< float*>(_v)); break;
|
||||
default: break;
|
||||
}
|
||||
} else if (_c == QMetaObject::ResetProperty) {
|
||||
}
|
||||
#endif // QT_NO_PROPERTIES
|
||||
Q_UNUSED(_o);
|
||||
Q_UNUSED(_id);
|
||||
Q_UNUSED(_c);
|
||||
@ -90,6 +300,26 @@ void *NWidget::qt_metacast(const char *_clname)
|
||||
int NWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QWidget::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
|
||||
#ifndef QT_NO_PROPERTIES
|
||||
if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
|
||||
|| _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 44;
|
||||
} else if (_c == QMetaObject::QueryPropertyDesignable) {
|
||||
_id -= 44;
|
||||
} else if (_c == QMetaObject::QueryPropertyScriptable) {
|
||||
_id -= 44;
|
||||
} else if (_c == QMetaObject::QueryPropertyStored) {
|
||||
_id -= 44;
|
||||
} else if (_c == QMetaObject::QueryPropertyEditable) {
|
||||
_id -= 44;
|
||||
} else if (_c == QMetaObject::QueryPropertyUser) {
|
||||
_id -= 44;
|
||||
}
|
||||
#endif // QT_NO_PROPERTIES
|
||||
return _id;
|
||||
}
|
||||
QT_WARNING_POP
|
||||
|
||||
@ -8,8 +8,8 @@ class NLabel: public QLabel, public YogaWidget
|
||||
{
|
||||
|
||||
public:
|
||||
using QLabel::QLabel; //inherit all constructors of QLabel
|
||||
SET_YOGA_WIDGET_Q_PROPERTIES
|
||||
using QLabel::QLabel; //inherit all constructors of QLabel
|
||||
Q_OBJECT
|
||||
};
|
||||
|
||||
|
||||
@ -21,8 +21,8 @@ QT_BEGIN_MOC_NAMESPACE
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
struct qt_meta_stringdata_NLabel_t {
|
||||
QByteArrayData data[1];
|
||||
char stringdata0[7];
|
||||
QByteArrayData data[45];
|
||||
char stringdata0[484];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
@ -31,10 +31,67 @@ struct qt_meta_stringdata_NLabel_t {
|
||||
)
|
||||
static const qt_meta_stringdata_NLabel_t qt_meta_stringdata_NLabel = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 6) // "NLabel"
|
||||
QT_MOC_LITERAL(0, 0, 6), // "NLabel"
|
||||
QT_MOC_LITERAL(1, 7, 7), // "display"
|
||||
QT_MOC_LITERAL(2, 15, 10), // "alignItems"
|
||||
QT_MOC_LITERAL(3, 26, 12), // "alignContent"
|
||||
QT_MOC_LITERAL(4, 39, 9), // "alignSelf"
|
||||
QT_MOC_LITERAL(5, 49, 14), // "justifyContent"
|
||||
QT_MOC_LITERAL(6, 64, 9), // "direction"
|
||||
QT_MOC_LITERAL(7, 74, 13), // "flexDirection"
|
||||
QT_MOC_LITERAL(8, 88, 8), // "overflow"
|
||||
QT_MOC_LITERAL(9, 97, 8), // "position"
|
||||
QT_MOC_LITERAL(10, 106, 8), // "flexWrap"
|
||||
QT_MOC_LITERAL(11, 115, 4), // "flex"
|
||||
QT_MOC_LITERAL(12, 120, 8), // "flexGrow"
|
||||
QT_MOC_LITERAL(13, 129, 10), // "flexShrink"
|
||||
QT_MOC_LITERAL(14, 140, 11), // "aspectRatio"
|
||||
QT_MOC_LITERAL(15, 152, 3), // "top"
|
||||
QT_MOC_LITERAL(16, 156, 5), // "right"
|
||||
QT_MOC_LITERAL(17, 162, 6), // "bottom"
|
||||
QT_MOC_LITERAL(18, 169, 4), // "left"
|
||||
QT_MOC_LITERAL(19, 174, 9), // "flexBasis"
|
||||
QT_MOC_LITERAL(20, 184, 8), // "minWidth"
|
||||
QT_MOC_LITERAL(21, 193, 9), // "minHeight"
|
||||
QT_MOC_LITERAL(22, 203, 8), // "maxWidth"
|
||||
QT_MOC_LITERAL(23, 212, 9), // "maxHeight"
|
||||
QT_MOC_LITERAL(24, 222, 10), // "paddingTop"
|
||||
QT_MOC_LITERAL(25, 233, 12), // "paddingRight"
|
||||
QT_MOC_LITERAL(26, 246, 13), // "paddingBottom"
|
||||
QT_MOC_LITERAL(27, 260, 11), // "paddingLeft"
|
||||
QT_MOC_LITERAL(28, 272, 17), // "paddingHorizontal"
|
||||
QT_MOC_LITERAL(29, 290, 15), // "paddingVertical"
|
||||
QT_MOC_LITERAL(30, 306, 7), // "padding"
|
||||
QT_MOC_LITERAL(31, 314, 9), // "marginTop"
|
||||
QT_MOC_LITERAL(32, 324, 11), // "marginRight"
|
||||
QT_MOC_LITERAL(33, 336, 12), // "marginBottom"
|
||||
QT_MOC_LITERAL(34, 349, 10), // "marginLeft"
|
||||
QT_MOC_LITERAL(35, 360, 16), // "marginHorizontal"
|
||||
QT_MOC_LITERAL(36, 377, 14), // "marginVertical"
|
||||
QT_MOC_LITERAL(37, 392, 6), // "margin"
|
||||
QT_MOC_LITERAL(38, 399, 9), // "borderTop"
|
||||
QT_MOC_LITERAL(39, 409, 11), // "borderRight"
|
||||
QT_MOC_LITERAL(40, 421, 12), // "borderBottom"
|
||||
QT_MOC_LITERAL(41, 434, 10), // "borderLeft"
|
||||
QT_MOC_LITERAL(42, 445, 16), // "borderHorizontal"
|
||||
QT_MOC_LITERAL(43, 462, 14), // "borderVertical"
|
||||
QT_MOC_LITERAL(44, 477, 6) // "border"
|
||||
|
||||
},
|
||||
"NLabel"
|
||||
"NLabel\0display\0alignItems\0alignContent\0"
|
||||
"alignSelf\0justifyContent\0direction\0"
|
||||
"flexDirection\0overflow\0position\0"
|
||||
"flexWrap\0flex\0flexGrow\0flexShrink\0"
|
||||
"aspectRatio\0top\0right\0bottom\0left\0"
|
||||
"flexBasis\0minWidth\0minHeight\0maxWidth\0"
|
||||
"maxHeight\0paddingTop\0paddingRight\0"
|
||||
"paddingBottom\0paddingLeft\0paddingHorizontal\0"
|
||||
"paddingVertical\0padding\0marginTop\0"
|
||||
"marginRight\0marginBottom\0marginLeft\0"
|
||||
"marginHorizontal\0marginVertical\0margin\0"
|
||||
"borderTop\0borderRight\0borderBottom\0"
|
||||
"borderLeft\0borderHorizontal\0borderVertical\0"
|
||||
"border"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
@ -45,17 +102,170 @@ static const uint qt_meta_data_NLabel[] = {
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
44, 14, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
// properties: name, type, flags
|
||||
1, QMetaType::QString, 0x00095003,
|
||||
2, QMetaType::QString, 0x00095003,
|
||||
3, QMetaType::QString, 0x00095003,
|
||||
4, QMetaType::QString, 0x00095003,
|
||||
5, QMetaType::QString, 0x00095003,
|
||||
6, QMetaType::QString, 0x00095003,
|
||||
7, QMetaType::QString, 0x00095003,
|
||||
8, QMetaType::QString, 0x00095003,
|
||||
9, QMetaType::QString, 0x00095003,
|
||||
10, QMetaType::QString, 0x00095003,
|
||||
11, QMetaType::Float, 0x00095003,
|
||||
12, QMetaType::Float, 0x00095003,
|
||||
13, QMetaType::Float, 0x00095003,
|
||||
14, QMetaType::Float, 0x00095003,
|
||||
15, QMetaType::QString, 0x00095003,
|
||||
16, QMetaType::QString, 0x00095003,
|
||||
17, QMetaType::QString, 0x00095003,
|
||||
18, QMetaType::QString, 0x00095003,
|
||||
19, QMetaType::QString, 0x00095003,
|
||||
20, QMetaType::QString, 0x00095003,
|
||||
21, QMetaType::QString, 0x00095003,
|
||||
22, QMetaType::QString, 0x00095003,
|
||||
23, QMetaType::QString, 0x00095003,
|
||||
24, QMetaType::QString, 0x00095003,
|
||||
25, QMetaType::QString, 0x00095003,
|
||||
26, QMetaType::QString, 0x00095003,
|
||||
27, QMetaType::QString, 0x00095003,
|
||||
28, QMetaType::QString, 0x00095003,
|
||||
29, QMetaType::QString, 0x00095003,
|
||||
30, QMetaType::QString, 0x00095003,
|
||||
31, QMetaType::QString, 0x00095003,
|
||||
32, QMetaType::QString, 0x00095003,
|
||||
33, QMetaType::QString, 0x00095003,
|
||||
34, QMetaType::QString, 0x00095003,
|
||||
35, QMetaType::QString, 0x00095003,
|
||||
36, QMetaType::QString, 0x00095003,
|
||||
37, QMetaType::QString, 0x00095003,
|
||||
38, QMetaType::Float, 0x00095003,
|
||||
39, QMetaType::Float, 0x00095003,
|
||||
40, QMetaType::Float, 0x00095003,
|
||||
41, QMetaType::Float, 0x00095003,
|
||||
42, QMetaType::Float, 0x00095003,
|
||||
43, QMetaType::Float, 0x00095003,
|
||||
44, QMetaType::Float, 0x00095003,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void NLabel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
|
||||
#ifndef QT_NO_PROPERTIES
|
||||
if (_c == QMetaObject::ReadProperty) {
|
||||
auto *_t = static_cast<NLabel *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
void *_v = _a[0];
|
||||
switch (_id) {
|
||||
case 0: *reinterpret_cast< QString*>(_v) = _t->_yDisplay; break;
|
||||
case 1: *reinterpret_cast< QString*>(_v) = _t->_yAlignItems; break;
|
||||
case 2: *reinterpret_cast< QString*>(_v) = _t->_yAlignContent; break;
|
||||
case 3: *reinterpret_cast< QString*>(_v) = _t->_yAlignSelf; break;
|
||||
case 4: *reinterpret_cast< QString*>(_v) = _t->_yJustifyContent; break;
|
||||
case 5: *reinterpret_cast< QString*>(_v) = _t->_yDirection; break;
|
||||
case 6: *reinterpret_cast< QString*>(_v) = _t->_yFlexDirection; break;
|
||||
case 7: *reinterpret_cast< QString*>(_v) = _t->_yOverflow; break;
|
||||
case 8: *reinterpret_cast< QString*>(_v) = _t->_yPosition; break;
|
||||
case 9: *reinterpret_cast< QString*>(_v) = _t->_yFlexWrap; break;
|
||||
case 10: *reinterpret_cast< float*>(_v) = _t->_yFlex; break;
|
||||
case 11: *reinterpret_cast< float*>(_v) = _t->_yFlexGrow; break;
|
||||
case 12: *reinterpret_cast< float*>(_v) = _t->_yFlexShrink; break;
|
||||
case 13: *reinterpret_cast< float*>(_v) = _t->_yAspectRatio; break;
|
||||
case 14: *reinterpret_cast< QString*>(_v) = _t->_yTop; break;
|
||||
case 15: *reinterpret_cast< QString*>(_v) = _t->_yRight; break;
|
||||
case 16: *reinterpret_cast< QString*>(_v) = _t->_yBottom; break;
|
||||
case 17: *reinterpret_cast< QString*>(_v) = _t->_yLeft; break;
|
||||
case 18: *reinterpret_cast< QString*>(_v) = _t->_yFlexBasis; break;
|
||||
case 19: *reinterpret_cast< QString*>(_v) = _t->_yMinWidth; break;
|
||||
case 20: *reinterpret_cast< QString*>(_v) = _t->_yMinHeight; break;
|
||||
case 21: *reinterpret_cast< QString*>(_v) = _t->_yMaxWidth; break;
|
||||
case 22: *reinterpret_cast< QString*>(_v) = _t->_yMaxHeight; break;
|
||||
case 23: *reinterpret_cast< QString*>(_v) = _t->_yPaddingTop; break;
|
||||
case 24: *reinterpret_cast< QString*>(_v) = _t->_yPaddingRight; break;
|
||||
case 25: *reinterpret_cast< QString*>(_v) = _t->_yPaddingBottom; break;
|
||||
case 26: *reinterpret_cast< QString*>(_v) = _t->_yPaddingLeft; break;
|
||||
case 27: *reinterpret_cast< QString*>(_v) = _t->_yPaddingHorizontal; break;
|
||||
case 28: *reinterpret_cast< QString*>(_v) = _t->_yPaddingVertical; break;
|
||||
case 29: *reinterpret_cast< QString*>(_v) = _t->_yPadding; break;
|
||||
case 30: *reinterpret_cast< QString*>(_v) = _t->_yMarginTop; break;
|
||||
case 31: *reinterpret_cast< QString*>(_v) = _t->_yMarginRight; break;
|
||||
case 32: *reinterpret_cast< QString*>(_v) = _t->_yMarginBottom; break;
|
||||
case 33: *reinterpret_cast< QString*>(_v) = _t->_yMarginLeft; break;
|
||||
case 34: *reinterpret_cast< QString*>(_v) = _t->_yMarginHorizontal; break;
|
||||
case 35: *reinterpret_cast< QString*>(_v) = _t->_yMarginVertical; break;
|
||||
case 36: *reinterpret_cast< QString*>(_v) = _t->_yMargin; break;
|
||||
case 37: *reinterpret_cast< float*>(_v) = _t->_yBorderTop; break;
|
||||
case 38: *reinterpret_cast< float*>(_v) = _t->_yBorderRight; break;
|
||||
case 39: *reinterpret_cast< float*>(_v) = _t->_yBorderBottom; break;
|
||||
case 40: *reinterpret_cast< float*>(_v) = _t->_yBorderLeft; break;
|
||||
case 41: *reinterpret_cast< float*>(_v) = _t->_yBorderHorizontal; break;
|
||||
case 42: *reinterpret_cast< float*>(_v) = _t->_yBorderVertical; break;
|
||||
case 43: *reinterpret_cast< float*>(_v) = _t->_yBorder; break;
|
||||
default: break;
|
||||
}
|
||||
} else if (_c == QMetaObject::WriteProperty) {
|
||||
auto *_t = static_cast<NLabel *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
void *_v = _a[0];
|
||||
switch (_id) {
|
||||
case 0: _t->setYDisplay(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 1: _t->setYAlignItems(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 2: _t->setYAlignContent(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 3: _t->setYAlignSelf(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 4: _t->setYJustifyContent(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 5: _t->setYDirection(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 6: _t->setYFlexDirection(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 7: _t->setYOverflow(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 8: _t->setYPosition(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 9: _t->setYFlexWrap(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 10: _t->setYFlex(*reinterpret_cast< float*>(_v)); break;
|
||||
case 11: _t->setYFlexGrow(*reinterpret_cast< float*>(_v)); break;
|
||||
case 12: _t->setYFlexShrink(*reinterpret_cast< float*>(_v)); break;
|
||||
case 13: _t->setYAspectRatio(*reinterpret_cast< float*>(_v)); break;
|
||||
case 14: _t->setYNodeTop(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 15: _t->setYNodeRight(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 16: _t->setYNodeBottom(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 17: _t->setYNodeLeft(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 18: _t->setYFlexBasis(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 19: _t->setYMinWidth(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 20: _t->setYMinHeight(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 21: _t->setYMaxWidth(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 22: _t->setYMaxHeight(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 23: _t->setYPaddingTop(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 24: _t->setYPaddingRight(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 25: _t->setYPaddingBottom(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 26: _t->setYPaddingLeft(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 27: _t->setYPaddingHorizontal(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 28: _t->setYPaddingVertical(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 29: _t->setYPadding(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 30: _t->setYMarginTop(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 31: _t->setYMarginRight(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 32: _t->setYMarginBottom(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 33: _t->setYMarginLeft(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 34: _t->setYMarginHorizontal(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 35: _t->setYMarginVertical(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 36: _t->setYMarginAll(*reinterpret_cast< QString*>(_v)); break;
|
||||
case 37: _t->setYBorderTop(*reinterpret_cast< float*>(_v)); break;
|
||||
case 38: _t->setYBorderRight(*reinterpret_cast< float*>(_v)); break;
|
||||
case 39: _t->setYBorderBottom(*reinterpret_cast< float*>(_v)); break;
|
||||
case 40: _t->setYBorderLeft(*reinterpret_cast< float*>(_v)); break;
|
||||
case 41: _t->setYBorderHorizontal(*reinterpret_cast< float*>(_v)); break;
|
||||
case 42: _t->setYBorderVertical(*reinterpret_cast< float*>(_v)); break;
|
||||
case 43: _t->setYBorder(*reinterpret_cast< float*>(_v)); break;
|
||||
default: break;
|
||||
}
|
||||
} else if (_c == QMetaObject::ResetProperty) {
|
||||
}
|
||||
#endif // QT_NO_PROPERTIES
|
||||
Q_UNUSED(_o);
|
||||
Q_UNUSED(_id);
|
||||
Q_UNUSED(_c);
|
||||
@ -90,6 +300,26 @@ void *NLabel::qt_metacast(const char *_clname)
|
||||
int NLabel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QLabel::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
|
||||
#ifndef QT_NO_PROPERTIES
|
||||
if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
|
||||
|| _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 44;
|
||||
} else if (_c == QMetaObject::QueryPropertyDesignable) {
|
||||
_id -= 44;
|
||||
} else if (_c == QMetaObject::QueryPropertyScriptable) {
|
||||
_id -= 44;
|
||||
} else if (_c == QMetaObject::QueryPropertyStored) {
|
||||
_id -= 44;
|
||||
} else if (_c == QMetaObject::QueryPropertyEditable) {
|
||||
_id -= 44;
|
||||
} else if (_c == QMetaObject::QueryPropertyUser) {
|
||||
_id -= 44;
|
||||
}
|
||||
#endif // QT_NO_PROPERTIES
|
||||
return _id;
|
||||
}
|
||||
QT_WARNING_POP
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
#include "src/cpp/core/FlexLayout/flexnode_wrap.h"
|
||||
#include <QWidget>
|
||||
|
||||
|
||||
Napi::FunctionReference QLabelWrap::constructor;
|
||||
|
||||
Napi::Object QLabelWrap::init(Napi::Env env, Napi::Object exports) {
|
||||
|
||||
@ -7,8 +7,8 @@ void YogaWidget::setYDisplay(QString display){
|
||||
YGNodeStyleSetDisplay(this->getFlexNode(),static_cast<YGDisplay>(value));
|
||||
this->_yDisplay = display;
|
||||
qDebug()<<"Value set display "<<display;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: display "<<display<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: display "<<display<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYAlignItems(QString alignItems){
|
||||
@ -17,8 +17,8 @@ void YogaWidget::setYAlignItems(QString alignItems){
|
||||
YGNodeStyleSetAlignItems(this->getFlexNode(),static_cast<YGAlign>(value));
|
||||
this->_yAlignItems = alignItems;
|
||||
qDebug()<<"Value set alignItems "<<alignItems;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: alignItems: "<<alignItems<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: alignItems: "<<alignItems<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYAlignContent(QString alignContent){
|
||||
@ -27,8 +27,8 @@ void YogaWidget::setYAlignContent(QString alignContent){
|
||||
YGNodeStyleSetAlignContent(this->getFlexNode(),static_cast<YGAlign>(value));
|
||||
this->_yAlignContent = alignContent;
|
||||
qDebug()<<"Value set alignContent "<<alignContent;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: alignContent: "<<alignContent<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: alignContent: "<<alignContent<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYAlignSelf(QString alignSelf){
|
||||
@ -37,8 +37,8 @@ void YogaWidget::setYAlignSelf(QString alignSelf){
|
||||
YGNodeStyleSetAlignSelf(this->getFlexNode(),static_cast<YGAlign>(value));
|
||||
this->_yAlignSelf = alignSelf;
|
||||
qDebug()<<"Value set alignSelf "<<alignSelf;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: alignSelf: "<<alignSelf<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: alignSelf: "<<alignSelf<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYJustifyContent(QString justifyContent){
|
||||
@ -47,8 +47,8 @@ void YogaWidget::setYJustifyContent(QString justifyContent){
|
||||
YGNodeStyleSetJustifyContent(this->getFlexNode(),static_cast<YGJustify>(value));
|
||||
this->_yJustifyContent = justifyContent;
|
||||
qDebug()<<"Value set justifyContent "<<justifyContent;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: justifyContent: "<<justifyContent<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: justifyContent: "<<justifyContent<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYDirection(QString direction){
|
||||
@ -57,8 +57,8 @@ void YogaWidget::setYDirection(QString direction){
|
||||
YGNodeStyleSetDirection(this->getFlexNode(),static_cast<YGDirection>(value));
|
||||
this->_yDirection = direction;
|
||||
qDebug()<<"Value set direction "<<direction;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: direction: "<<direction<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: direction: "<<direction<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYFlexDirection(QString flexDirection){
|
||||
@ -67,8 +67,8 @@ void YogaWidget::setYFlexDirection(QString flexDirection){
|
||||
YGNodeStyleSetFlexDirection(this->getFlexNode(),static_cast<YGFlexDirection>(value));
|
||||
this->_yFlexDirection = flexDirection;
|
||||
qDebug()<<"Value set flexDirection "<<flexDirection;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: flexDirection: "<<flexDirection<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: flexDirection: "<<flexDirection<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYOverflow(QString overflow){
|
||||
@ -77,8 +77,8 @@ void YogaWidget::setYOverflow(QString overflow){
|
||||
YGNodeStyleSetOverflow(this->getFlexNode(),static_cast<YGOverflow>(value));
|
||||
this->_yOverflow = overflow;
|
||||
qDebug()<<"Value set overflow "<<overflow;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: overflow: "<<overflow<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: overflow: "<<overflow<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYPosition(QString position){
|
||||
@ -87,8 +87,8 @@ void YogaWidget::setYPosition(QString position){
|
||||
YGNodeStyleSetPositionType(this->getFlexNode(),static_cast<YGPositionType>(value));
|
||||
this->_yPosition = position;
|
||||
qDebug()<<"Value set positionType "<<position;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: positionType: "<<position<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: positionType: "<<position<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYFlexWrap(QString flexWrap){
|
||||
@ -97,8 +97,8 @@ void YogaWidget::setYFlexWrap(QString flexWrap){
|
||||
YGNodeStyleSetFlexWrap(this->getFlexNode(),static_cast<YGWrap>(value));
|
||||
this->_yFlexWrap = flexWrap;
|
||||
qDebug()<<"Value set flexWrap "<<flexWrap;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: flexWrap: "<<flexWrap<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: flexWrap: "<<flexWrap<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYFlex(float flex){
|
||||
@ -106,8 +106,8 @@ void YogaWidget::setYFlex(float flex){
|
||||
YGNodeStyleSetFlex(this->getFlexNode(),flex);
|
||||
this->_yFlex = flex;
|
||||
qDebug()<<"Value set flex "<<flex;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: flex: "<<flex<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: flex: "<<flex<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYFlexGrow(float flexGrow){
|
||||
@ -115,8 +115,8 @@ void YogaWidget::setYFlexGrow(float flexGrow){
|
||||
YGNodeStyleSetFlexGrow(this->getFlexNode(),flexGrow);
|
||||
this->_yFlexGrow = flexGrow;
|
||||
qDebug()<<"Value set flexGrow "<<flexGrow;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: flexGrow: "<<flexGrow<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: flexGrow: "<<flexGrow<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYFlexShrink(float flexShrink){
|
||||
@ -124,8 +124,8 @@ void YogaWidget::setYFlexShrink(float flexShrink){
|
||||
YGNodeStyleSetFlexShrink(this->getFlexNode(),flexShrink);
|
||||
this->_yFlexShrink = flexShrink;
|
||||
qDebug()<<"Value set flexShrink "<<flexShrink;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: flexShrink: "<<flexShrink<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: flexShrink: "<<flexShrink<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYAspectRatio(float aspectRatio){
|
||||
@ -133,8 +133,8 @@ void YogaWidget::setYAspectRatio(float aspectRatio){
|
||||
YGNodeStyleSetAspectRatio(this->getFlexNode(),aspectRatio);
|
||||
this->_yAspectRatio = aspectRatio;
|
||||
qDebug()<<"Value set aspectRatio "<<aspectRatio;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: aspectRatio: "<<aspectRatio<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: aspectRatio: "<<aspectRatio<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYNodeTop(QString rawValue){
|
||||
@ -144,8 +144,8 @@ void YogaWidget::setYNodeTop(QString rawValue){
|
||||
? YGNodeStyleSetPositionPercent(this->getFlexNode(), YGEdgeTop,measurement.value)
|
||||
: YGNodeStyleSetPosition(this->getFlexNode(),YGEdgeTop,measurement.value);
|
||||
this->_yTop = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: top: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: top: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYNodeRight(QString rawValue){
|
||||
@ -155,8 +155,8 @@ void YogaWidget::setYNodeRight(QString rawValue){
|
||||
? YGNodeStyleSetPositionPercent(this->getFlexNode(), YGEdgeRight,measurement.value)
|
||||
: YGNodeStyleSetPosition(this->getFlexNode(),YGEdgeRight,measurement.value);
|
||||
this->_yRight = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: right: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: right: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
|
||||
@ -167,8 +167,8 @@ void YogaWidget::setYNodeBottom(QString rawValue){
|
||||
? YGNodeStyleSetPositionPercent(this->getFlexNode(), YGEdgeBottom,measurement.value)
|
||||
: YGNodeStyleSetPosition(this->getFlexNode(),YGEdgeBottom,measurement.value);
|
||||
this->_yBottom = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: bottom: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: bottom: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
|
||||
@ -179,8 +179,8 @@ void YogaWidget::setYNodeLeft(QString rawValue){
|
||||
? YGNodeStyleSetPositionPercent(this->getFlexNode(), YGEdgeLeft,measurement.value)
|
||||
: YGNodeStyleSetPosition(this->getFlexNode(),YGEdgeLeft,measurement.value);
|
||||
this->_yLeft = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: left: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: left: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
|
||||
@ -195,8 +195,8 @@ void YogaWidget::setYFlexBasis(QString rawValue){
|
||||
: YGNodeStyleSetFlexBasis(this->getFlexNode(),measurement.value);
|
||||
}
|
||||
this->_yFlexBasis = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: flexBasis: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: flexBasis: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
|
||||
@ -207,8 +207,8 @@ void YogaWidget::setYMinWidth(QString rawValue){
|
||||
? YGNodeStyleSetMinWidthPercent(this->getFlexNode(), measurement.value)
|
||||
: YGNodeStyleSetMinWidth(this->getFlexNode(), measurement.value);
|
||||
this->_yMinWidth = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: minWidth: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: minWidth: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYMinHeight(QString rawValue){
|
||||
@ -218,8 +218,8 @@ void YogaWidget::setYMinHeight(QString rawValue){
|
||||
? YGNodeStyleSetMinHeightPercent(this->getFlexNode(), measurement.value)
|
||||
: YGNodeStyleSetMinHeight(this->getFlexNode(), measurement.value);
|
||||
this->_yMinHeight = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: minHeight: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: minHeight: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYMaxWidth(QString rawValue){
|
||||
@ -229,8 +229,8 @@ void YogaWidget::setYMaxWidth(QString rawValue){
|
||||
? YGNodeStyleSetMaxWidthPercent(this->getFlexNode(), measurement.value)
|
||||
: YGNodeStyleSetMaxWidth(this->getFlexNode(), measurement.value);
|
||||
this->_yMaxWidth = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: maxWidth: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: maxWidth: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYMaxHeight(QString rawValue){
|
||||
@ -240,8 +240,8 @@ void YogaWidget::setYMaxHeight(QString rawValue){
|
||||
? YGNodeStyleSetMaxHeightPercent(this->getFlexNode(), measurement.value)
|
||||
: YGNodeStyleSetMaxHeight(this->getFlexNode(), measurement.value);
|
||||
this->_yMaxHeight = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: maxHeight: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: maxHeight: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYPaddingTop(QString rawValue){
|
||||
@ -251,8 +251,8 @@ void YogaWidget::setYPaddingTop(QString rawValue){
|
||||
? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeTop, measurement.value)
|
||||
: YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeTop, measurement.value);
|
||||
this->_yPaddingTop = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: paddingTop: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: paddingTop: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYPaddingRight(QString rawValue){
|
||||
@ -262,8 +262,8 @@ void YogaWidget::setYPaddingRight(QString rawValue){
|
||||
? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeRight, measurement.value)
|
||||
: YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeRight, measurement.value);
|
||||
this->_yPaddingRight = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: paddingRight: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: paddingRight: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYPaddingBottom(QString rawValue){
|
||||
@ -273,8 +273,8 @@ void YogaWidget::setYPaddingBottom(QString rawValue){
|
||||
? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeBottom, measurement.value)
|
||||
: YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeBottom, measurement.value);
|
||||
this->_yPaddingBottom = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: paddingBottom: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: paddingBottom: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYPaddingLeft(QString rawValue){
|
||||
@ -284,8 +284,8 @@ void YogaWidget::setYPaddingLeft(QString rawValue){
|
||||
? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeLeft, measurement.value)
|
||||
: YGNodeStyleSetPadding(this->getFlexNode(), YGEdgeLeft, measurement.value);
|
||||
this->_yPaddingLeft = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: paddingLeft: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: paddingLeft: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYPaddingHorizontal(QString rawValue){
|
||||
@ -295,8 +295,8 @@ void YogaWidget::setYPaddingHorizontal(QString rawValue){
|
||||
? YGNodeStyleSetPaddingPercent(this->getFlexNode(), YGEdgeHorizontal, measurement.value)
|
||||
: YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeHorizontal, measurement.value);
|
||||
this->_yPaddingHorizontal = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: paddingHorizontal: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: paddingHorizontal: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYPaddingVertical(QString rawValue){
|
||||
@ -306,8 +306,8 @@ void YogaWidget::setYPaddingVertical(QString rawValue){
|
||||
? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeVertical, measurement.value)
|
||||
: YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeVertical, measurement.value);
|
||||
this->_yPaddingVertical = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: paddingVertical: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: paddingVertical: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYPadding(QString rawValue){
|
||||
@ -317,8 +317,8 @@ void YogaWidget::setYPadding(QString rawValue){
|
||||
? YGNodeStyleSetPaddingPercent(this->getFlexNode(),YGEdgeAll, measurement.value)
|
||||
: YGNodeStyleSetPadding(this->getFlexNode(),YGEdgeAll, measurement.value);
|
||||
this->_yPadding = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: padding: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: padding: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYMarginTop(QString rawValue){
|
||||
@ -328,8 +328,8 @@ void YogaWidget::setYMarginTop(QString rawValue){
|
||||
? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeTop, measurement.value)
|
||||
: YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeTop, measurement.value);
|
||||
this->_yMarginTop = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: marginTop: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: marginTop: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYMarginRight(QString rawValue){
|
||||
@ -339,8 +339,8 @@ void YogaWidget::setYMarginRight(QString rawValue){
|
||||
? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeRight, measurement.value)
|
||||
: YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeRight, measurement.value);
|
||||
this->_yMarginRight = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: marginRight: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: marginRight: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYMarginBottom(QString rawValue){
|
||||
@ -350,8 +350,8 @@ void YogaWidget::setYMarginBottom(QString rawValue){
|
||||
? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeBottom, measurement.value)
|
||||
: YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeBottom, measurement.value);
|
||||
this->_yMarginBottom = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: marginBottom: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: marginBottom: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYMarginLeft(QString rawValue){
|
||||
@ -361,8 +361,8 @@ void YogaWidget::setYMarginLeft(QString rawValue){
|
||||
? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeLeft, measurement.value)
|
||||
: YGNodeStyleSetMargin(this->getFlexNode(), YGEdgeLeft, measurement.value);
|
||||
this->_yMarginLeft = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: marginLeft: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: marginLeft: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYMarginHorizontal(QString rawValue){
|
||||
@ -372,8 +372,8 @@ void YogaWidget::setYMarginHorizontal(QString rawValue){
|
||||
? YGNodeStyleSetMarginPercent(this->getFlexNode(), YGEdgeHorizontal, measurement.value)
|
||||
: YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeHorizontal, measurement.value);
|
||||
this->_yMarginHorizontal = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: marginHorizontal: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: marginHorizontal: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYMarginVertical(QString rawValue){
|
||||
@ -383,8 +383,8 @@ void YogaWidget::setYMarginVertical(QString rawValue){
|
||||
? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeVertical, measurement.value)
|
||||
: YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeVertical, measurement.value);
|
||||
this->_yMarginVertical = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: marginVertical: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: marginVertical: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYMarginAll(QString rawValue){
|
||||
@ -394,8 +394,8 @@ void YogaWidget::setYMarginAll(QString rawValue){
|
||||
? YGNodeStyleSetMarginPercent(this->getFlexNode(),YGEdgeAll, measurement.value)
|
||||
: YGNodeStyleSetMargin(this->getFlexNode(),YGEdgeAll, measurement.value);
|
||||
this->_yMargin = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: margin: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: margin: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
|
||||
@ -403,48 +403,48 @@ void YogaWidget::setYBorderTop(float rawValue){
|
||||
try {
|
||||
YGNodeStyleSetBorder(this->getFlexNode(),YGEdgeTop, rawValue);
|
||||
this->_yBorderTop = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: borderTop: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: borderTop: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYBorderRight(float rawValue){
|
||||
try {
|
||||
YGNodeStyleSetBorder(this->getFlexNode(),YGEdgeRight, rawValue);
|
||||
this->_yBorderRight = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: borderRight: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: borderRight: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYBorderBottom(float rawValue){
|
||||
try {
|
||||
YGNodeStyleSetBorder(this->getFlexNode(),YGEdgeBottom, rawValue);
|
||||
this->_yBorderBottom = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: borderBottom: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: borderBottom: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYBorderLeft(float rawValue){
|
||||
try {
|
||||
YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeLeft, rawValue);
|
||||
this->_yBorderLeft = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: borderLeft: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: borderLeft: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYBorderHorizontal(float rawValue){
|
||||
try {
|
||||
YGNodeStyleSetBorder(this->getFlexNode(),YGEdgeHorizontal, rawValue);
|
||||
this->_yBorderHorizontal = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: borderHorizontal: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: borderHorizontal: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
void YogaWidget::setYBorderVertical(float rawValue){
|
||||
try {
|
||||
YGNodeStyleSetBorder(this->getFlexNode(),YGEdgeVertical, rawValue);
|
||||
this->_yBorderVertical = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: borderVertical: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: borderVertical: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
|
||||
@ -452,7 +452,7 @@ void YogaWidget::setYBorder(float rawValue){
|
||||
try {
|
||||
YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeAll, rawValue);
|
||||
this->_yBorder = rawValue;
|
||||
}catch(std::exception &e){
|
||||
qDebug()<<"Error: border: "<<rawValue<<" "<<e.what();
|
||||
}catch(...){
|
||||
qDebug()<<"Error: border: "<<rawValue<<" ";
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,6 +17,8 @@ All Widgets for which you need to set yoga props via qstylesheet should
|
||||
4. Lastly, since Q_OBJECT is used they should make a call to qt moc.
|
||||
*/
|
||||
|
||||
|
||||
// This macro is not working so copy paste it for now
|
||||
#ifndef SET_YOGA_WIDGET_Q_PROPERTIES
|
||||
#define SET_YOGA_WIDGET_Q_PROPERTIES \
|
||||
Q_PROPERTY(QString display MEMBER _yDisplay WRITE setYDisplay) \
|
||||
@ -62,7 +64,7 @@ All Widgets for which you need to set yoga props via qstylesheet should
|
||||
Q_PROPERTY(float borderLeft MEMBER _yBorderLeft WRITE setYBorderLeft) \
|
||||
Q_PROPERTY(float borderHorizontal MEMBER _yBorderHorizontal WRITE setYBorderHorizontal) \
|
||||
Q_PROPERTY(float borderVertical MEMBER _yBorderVertical WRITE setYBorderVertical) \
|
||||
Q_PROPERTY(float border MEMBER _yBorder WRITE setYBorder)
|
||||
Q_PROPERTY(float border MEMBER _yBorder WRITE setYBorder)\
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user