Skip to content

Commit 6c838fd

Browse files
author
Brandon Benvie
committed
Add JS binding for close method on Widget
1 parent b172e1e commit 6c838fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/QtGui/qwidget.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ void QWidgetWrap::Initialize(Handle<Object> target) {
184184
FunctionTemplate::New(Resize)->GetFunction());
185185
tpl->PrototypeTemplate()->Set(String::NewSymbol("show"),
186186
FunctionTemplate::New(Show)->GetFunction());
187+
tpl->PrototypeTemplate()->Set(String::NewSymbol("close"),
188+
FunctionTemplate::New(Close)->GetFunction());
187189
tpl->PrototypeTemplate()->Set(String::NewSymbol("size"),
188190
FunctionTemplate::New(Size)->GetFunction());
189191
tpl->PrototypeTemplate()->Set(String::NewSymbol("width"),

0 commit comments

Comments
 (0)