Skip to content

Commit

Permalink
Cosmetic change to add flags support
Browse files Browse the repository at this point in the history
  • Loading branch information
peter mckinna committed Dec 26, 2016
1 parent 6396a3c commit 78fc79a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions m3-ui/qt/m3qtgui/test/Tabs/src/Window.m3
Expand Up @@ -102,19 +102,18 @@ BEGIN
self.createTabs();
self.createHorizGroupBox();

(* this fails until fix flags
(*
self.buttonBox := NEW(QtDialogButtonBox.T).init_4(Word.Or(Ok,Cancel),Horizontal,self);
*)

self.buttonBox := NEW(QtDialogButtonBox.T).init_0(self);
EVAL self.buttonBox.addButton1("Button 1",3);
EVAL self.buttonBox.addButton1("Button 2",3);

EVAL self.buttonBox.addButton2(Ok);
EVAL self.buttonBox.addButton2(Cancel);

(* this fails until fix flags
self.buttonBox.setStandardButtons(Word.Or(Ok,Cancel));
*)

mainLayout := NEW(QtBoxLayout.QVBoxLayout).init_1(self);

Expand Down

0 comments on commit 78fc79a

Please sign in to comment.