diff options
author | Joris | 2020-06-12 08:14:39 +0200 |
---|---|---|
committer | Joris | 2020-06-12 08:14:44 +0200 |
commit | 21adbec8d8c05533c3723a90b8356effabc62b15 (patch) | |
tree | 3ff5751f3a12bdf3e956fc8c2cb75b38ec1832ea | |
parent | e37a203d15bb6b656b004662a0f373c4264908d7 (diff) |
Remove warning in task form
-rw-r--r-- | todo/gui/tasks/form/widget.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/todo/gui/tasks/form/widget.py b/todo/gui/tasks/form/widget.py index 5950a93..a6ce488 100644 --- a/todo/gui/tasks/form/widget.py +++ b/todo/gui/tasks/form/widget.py @@ -104,10 +104,8 @@ def name_edit( default_value: str) -> QtWidgets.QLineEdit: widget = QtWidgets.QWidget(parent) - layout.addWidget(widget) - inner_layout = QtWidgets.QVBoxLayout(widget) - widget.setLayout(layout) + widget.setLayout(inner_layout) label = QtWidgets.QLabel(label, parent) inner_layout.addWidget(label) @@ -117,6 +115,8 @@ def name_edit( edit.setText(default_value) inner_layout.addWidget(edit) + layout.addWidget(widget) + return edit def line_edit( |