UNPKG

@dark-engine/platform-desktop

Version:

Dark renderer to desktop platforms like Windows, Linux, macOS via Nodegui and Qt

17 lines (16 loc) 540 B
import { QProgressDialog } from '@nodegui/nodegui'; import { component } from '@dark-engine/core'; import { qProgressDialog } from '../factory'; const ProgressDialog = component(props => qProgressDialog(props), { displayName: 'ProgressDialog', }); class QDarkProgressDialog extends QProgressDialog { setOpen(value) { value ? this.show() : this.close(); } setProgressRange(value) { this.setRange(value.minimum, value.maximum); } } export { ProgressDialog, QDarkProgressDialog }; //# sourceMappingURL=progress-dialog.js.map