All layouts inherit from qlayout on js side.
This commit is contained in:
parent
0ea9675005
commit
f9a209f34a
@ -1,8 +1,8 @@
|
||||
import addon from "../../core/addon";
|
||||
import { NodeWidget } from "../../QtGui/QWidget";
|
||||
import { Component } from "../../core/Component";
|
||||
import { QLayout } from "../QLayout";
|
||||
|
||||
export class QGridLayout extends Component {
|
||||
export class QGridLayout extends QLayout {
|
||||
native: any;
|
||||
constructor(parent?: NodeWidget) {
|
||||
super();
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
import addon from "../../core/addon";
|
||||
import { Component } from "../../core/Component";
|
||||
|
||||
export class QLayout extends Component {
|
||||
native = new addon.QLayout();
|
||||
}
|
||||
// All Layouts should extend this abstract class.
|
||||
export abstract class QLayout extends Component {}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { Component } from "../../../core/Component";
|
||||
import { QLayout } from "../../../QtWidgets/QLayout";
|
||||
|
||||
export class FlexNode extends Component {
|
||||
export class FlexNode extends QLayout {
|
||||
native: any;
|
||||
constructor(nativeNode: any) {
|
||||
super();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user