Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.editor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.editor
Commits
e0434e4d
Commit
e0434e4d
authored
6 years ago
by
Flavio TARSETTI
Browse files
Options
Downloads
Patches
Plain Diff
[widget] connected dataChanged signal and refactored code using QLineEdit's textChanged function
parent
6f7e30fc
No related branches found
No related tags found
1 merge request
!55
Reusable widget short description
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beat/editor/widgets/description.py
+4
-8
4 additions, 8 deletions
beat/editor/widgets/description.py
with
4 additions
and
8 deletions
beat/editor/widgets/description.py
+
4
−
8
View file @
e0434e4d
...
...
@@ -33,7 +33,7 @@ from PyQt5.QtWidgets import QFormLayout
class
DescriptionWidget
(
QWidget
):
"""
Class representing the short description of a beat object
"""
data
_c
hanged
=
pyqtSignal
()
data
C
hanged
=
pyqtSignal
()
def
__init__
(
self
,
parent
=
None
):
"""
Constructor
"""
...
...
@@ -45,13 +45,9 @@ class DescriptionWidget(QWidget):
layout
=
QFormLayout
(
self
)
layout
.
addRow
(
self
.
tr
(
"
Short Description:
"
),
self
.
form_description
)
@property
self
.
form_description
.
textChanged
.
connect
(
self
.
dataChanged
)
def
short_description
(
self
):
"""
Short description
property
"""
"""
Short description
text
"""
return
self
.
form_description
.
text
()
@short_description.setter
def
short_description
(
self
,
name
):
self
.
form_description
.
setText
(
name
)
self
.
data_changed
.
emit
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment