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
fad593c0
Commit
fad593c0
authored
Dec 14, 2017
by
Wolfgang Rohdewald
Browse files
elimininate classes About and KAboutData
parent
98df63a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kdestub.py
View file @
fad593c0
...
...
@@ -966,8 +966,6 @@ class AboutKajonggDialog(KDialog):
# pylint: disable=too-many-locals, too-many-statements
from
twisted
import
__version__
data
=
KGlobal
.
aboutData
KDialog
.
__init__
(
self
,
parent
)
self
.
setCaption
(
i18n
(
'About Kajongg'
))
self
.
setButtons
(
KDialog
.
Close
)
...
...
@@ -976,7 +974,11 @@ class AboutKajonggDialog(KDialog):
hLayout1
.
addWidget
(
IconLabel
(
'kajongg'
,
self
))
h1vLayout
=
QVBoxLayout
()
h1vLayout
.
addWidget
(
QLabel
(
'Kajongg'
))
h1vLayout
.
addWidget
(
QLabel
(
i18n
(
'Version: %1'
,
data
.
version
)))
try
:
from
appversion
import
VERSION
except
ImportError
:
VERSION
=
"Unknown"
h1vLayout
.
addWidget
(
QLabel
(
i18n
(
'Version: %1'
,
VERSION
)))
h1vLayout
.
addWidget
(
QLabel
(
i18n
(
'Protocol version %1'
,
Internal
.
defaultPort
)))
authors
=
((
"Wolfgang Rohdewald"
,
...
...
@@ -1001,7 +1003,7 @@ class AboutKajonggDialog(KDialog):
'Using versions %1'
,
', '
.
join
(
underVersions
))))
h1vLayout
.
addWidget
(
QLabel
(
i18n
(
'Not using Python KDE bindings'
)))
h1vLayout
.
addWidget
(
QLabel
(
i18n
(
'Not using
broken
Python KDE bindings'
)))
hLayout1
.
addLayout
(
h1vLayout
)
spacerItem
=
QSpacerItem
(
20
,
...
...
Write
Preview
Markdown
is supported
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