Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
eef9f47c
Commit
eef9f47c
authored
Oct 26, 2017
by
Wolfgang Rohdewald
Browse files
Scoringdialog and explainview: When closing them, update state of their action button
parent
a94c5b04
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scoringdialog.py
View file @
eef9f47c
...
...
@@ -555,6 +555,10 @@ class ScoreTable(QWidget):
if
height
:
self
.
leftLayout
.
addSpacing
(
height
)
def
closeEvent
(
self
,
unusedEvent
):
# pylint: disable=no-self-use
"""update action button state"""
Internal
.
mainWindow
.
actionScoreTable
.
setChecked
(
False
)
class
ExplainView
(
QListView
):
...
...
@@ -606,6 +610,10 @@ class ExplainView(QListView):
# QStringListModel does not optimize identical lists away, so we do
self
.
model
.
setStringList
(
lines
)
def
closeEvent
(
self
,
unusedEvent
):
# pylint: disable=no-self-use
"""update action button state"""
Internal
.
mainWindow
.
actionExplain
.
setChecked
(
False
)
class
PenaltyBox
(
QSpinBox
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment