diff --git a/src/cpp/QtWidgets/QProgressBar/qprogressbar_wrap.cpp b/src/cpp/QtWidgets/QProgressBar/qprogressbar_wrap.cpp index 36aba7440..17eff7afe 100644 --- a/src/cpp/QtWidgets/QProgressBar/qprogressbar_wrap.cpp +++ b/src/cpp/QtWidgets/QProgressBar/qprogressbar_wrap.cpp @@ -14,7 +14,7 @@ Napi::Object QProgressBarWrap::init(Napi::Env env, Napi::Object exports) { InstanceMethod("setValue", &QProgressBarWrap::setValue), InstanceMethod("setMaximum", &QProgressBarWrap::setMaximum), InstanceMethod("setMinimum", &QProgressBarWrap::setMinimum), - InstanceMethod("setOrientation", &QProgressBarWrap::setOrientation), + InstanceMethod("setOrientation", &QProgressBarWrap::setOrientation), InstanceMethod("value", &QProgressBarWrap::value), QWIDGET_WRAPPED_METHODS_EXPORT_DEFINE(QProgressBarWrap) }); diff --git a/src/lib/QtEnums/index.ts b/src/lib/QtEnums/index.ts index 90ea573f7..245839844 100644 --- a/src/lib/QtEnums/index.ts +++ b/src/lib/QtEnums/index.ts @@ -126,6 +126,6 @@ export enum WidgetAttribute { } export enum Orientation { - Horizontal = 1, - Vertical = 2 + Horizontal = 1, + Vertical = 2 } \ No newline at end of file diff --git a/src/lib/QtWidgets/QProgressBar/index.ts b/src/lib/QtWidgets/QProgressBar/index.ts index dfb94b281..8a7fdd6d6 100644 --- a/src/lib/QtWidgets/QProgressBar/index.ts +++ b/src/lib/QtWidgets/QProgressBar/index.ts @@ -23,7 +23,7 @@ export class QProgressBar extends NodeWidget { this.setValue.bind(this); this.setMinimum.bind(this); this.setMaximum.bind(this); - this.setOrientation.bind(this); + this.setOrientation.bind(this); this.value.bind(this); } setValue(value: number) {