Added exports

This commit is contained in:
Atul R 2019-06-27 19:21:09 +02:00
parent fd95251c8c
commit e2a4046a34
2 changed files with 22 additions and 1 deletions

View File

@ -2,7 +2,10 @@
"name": "@nodegui/nodegui",
"version": "1.0.0",
"description": "A cross platform library to build native desktop apps. Based on Qt5.",
"main": "dist/",
"main": "dist/src/lib/index.js",
"files": [
"dist/src/lib"
],
"author": "Atul R <atulanand94@gmail.com>",
"license": "MIT",
"private": false,

18
src/lib/index.ts Normal file
View File

@ -0,0 +1,18 @@
export { QApplication } from "./QtGui/QApplication";
export { QWidget } from "./QtGui/QWidget";
// Abstract:
export { NodeWidget } from "./QtGui/QWidget";
export { NodeLayout } from "./QtWidgets/QLayout";
// Widgets:
export { QCheckBox } from "./QtWidgets/QCheckBox";
export { QLabel } from "./QtWidgets/QLabel";
export { QLineEdit } from "./QtWidgets/QLineEdit";
export { QMainWindow } from "./QtWidgets/QMainWindow";
export { QProgressBar } from "./QtWidgets/QProgressBar";
export { QPushButton } from "./QtWidgets/QPushButton";
export { QRadioButton } from "./QtWidgets/QRadioButton";
// Layouts:
export { QGridLayout } from "./QtWidgets/QGridLayout";
export { FlexLayout } from "./core/FlexLayout";
// Events : Maybe a separate module ?
export { QKeyEvent } from "./QtGui/QEvent/QKeyEvent";