Skip to content

Commit b6dddeb

Browse files
committed
Update SpinButton.h
1 parent 7a37b45 commit b6dddeb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Qt.Widgets/CommonControls/SpinButton/src/SpinButton.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ namespace Examples {
99
Q_OBJECT
1010
public:
1111
SpinButton(QWidget* parent = nullptr) : QSpinBox(parent) {
12-
// Hack of QSpinBox :
13-
// (child[0] : line-edit and child[1] validator...
14-
// remove focus , hide line-edit (child 0) and resize without line-edit width.
12+
// Hack of QSpinBox (child[0] : line-edit and child[1] validator...) : remove focus , hide line-edit (child 0) and resize without line-edit width.
1513
setFocusPolicy(Qt::FocusPolicy::NoFocus);
1614
auto lineEdit = dynamic_cast<QWidget*>(children().at(0));
1715
if (lineEdit) {

0 commit comments

Comments
 (0)