Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
tomamic committed Nov 16, 2015
1 parent c99fbd2 commit 02605c2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions p6-gui.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,14 @@ <h3></h3>
// QObject::tr translates GUI texts (see Qt Linguist)

text_edit = new QTextEdit;
exit_button = new QPushButton{tr("E&amp;xit")};
exit_button = new QPushButton{tr("Quit")};

// widgets in a vertical layout
setLayout(new QVBoxLayout); // QWidget
layout()-&gt;addWidget(text_edit);
layout()-&gt;addWidget(exit_button);
auto layout = new QVBoxLayout
layout-&gt;addWidget(text_edit);
layout-&gt;addWidget(exit_button);

setLayout(layout); // QWidget
}
</code></pre></article>

Expand Down

0 comments on commit 02605c2

Please sign in to comment.