Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
d6cf933d
Commit
d6cf933d
authored
Feb 22, 2016
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted spacing
parent
02449b21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
chatwindow.py
blink/chatwindow.py
+7
-3
No files found.
blink/chatwindow.py
View file @
d6cf933d
...
@@ -388,7 +388,7 @@ class ChatWebView(QWebView):
...
@@ -388,7 +388,7 @@ class ChatWebView(QWebView):
return
None
return
None
def
dragEnterEvent
(
self
,
event
):
def
dragEnterEvent
(
self
,
event
):
event
.
ignore
()
# let the parent process DND
event
.
ignore
()
# let the parent process DND
def
resizeEvent
(
self
,
event
):
def
resizeEvent
(
self
,
event
):
super
(
ChatWebView
,
self
)
.
resizeEvent
(
event
)
super
(
ChatWebView
,
self
)
.
resizeEvent
(
event
)
...
@@ -403,7 +403,7 @@ class ChatTextInput(QTextEdit):
...
@@ -403,7 +403,7 @@ class ChatTextInput(QTextEdit):
self
.
setTabStopWidth
(
22
)
self
.
setTabStopWidth
(
22
)
self
.
document
()
.
documentLayout
()
.
documentSizeChanged
.
connect
(
self
.
_SH_DocumentLayoutSizeChanged
)
self
.
document
()
.
documentLayout
()
.
documentSizeChanged
.
connect
(
self
.
_SH_DocumentLayoutSizeChanged
)
self
.
history
=
[]
self
.
history
=
[]
self
.
history_index
=
0
# negative indexes with 0 indicating the text being typed.
self
.
history_index
=
0
# negative indexes with 0 indicating the text being typed.
self
.
stashed_content
=
None
self
.
stashed_content
=
None
@
property
@
property
...
@@ -413,7 +413,7 @@ class ChatTextInput(QTextEdit):
...
@@ -413,7 +413,7 @@ class ChatTextInput(QTextEdit):
return
document
.
characterCount
()
<=
1
and
not
last_block
.
textList
()
return
document
.
characterCount
()
<=
1
and
not
last_block
.
textList
()
def
dragEnterEvent
(
self
,
event
):
def
dragEnterEvent
(
self
,
event
):
event
.
ignore
()
# let the parent process DND
event
.
ignore
()
# let the parent process DND
def
keyPressEvent
(
self
,
event
):
def
keyPressEvent
(
self
,
event
):
key
,
modifiers
=
event
.
key
(),
event
.
modifiers
()
key
,
modifiers
=
event
.
key
(),
event
.
modifiers
()
...
@@ -478,13 +478,16 @@ class IconDescriptor(object):
...
@@ -478,13 +478,16 @@ class IconDescriptor(object):
def
__init__
(
self
,
filename
):
def
__init__
(
self
,
filename
):
self
.
filename
=
filename
self
.
filename
=
filename
self
.
icon
=
None
self
.
icon
=
None
def
__get__
(
self
,
obj
,
objtype
):
def
__get__
(
self
,
obj
,
objtype
):
if
self
.
icon
is
None
:
if
self
.
icon
is
None
:
self
.
icon
=
QIcon
(
self
.
filename
)
self
.
icon
=
QIcon
(
self
.
filename
)
self
.
icon
.
filename
=
self
.
filename
self
.
icon
.
filename
=
self
.
filename
return
self
.
icon
return
self
.
icon
def
__set__
(
self
,
obj
,
value
):
def
__set__
(
self
,
obj
,
value
):
raise
AttributeError
(
"attribute cannot be set"
)
raise
AttributeError
(
"attribute cannot be set"
)
def
__delete__
(
self
,
obj
):
def
__delete__
(
self
,
obj
):
raise
AttributeError
(
"attribute cannot be deleted"
)
raise
AttributeError
(
"attribute cannot be deleted"
)
...
@@ -552,6 +555,7 @@ class FileDescriptor(object):
...
@@ -552,6 +555,7 @@ class FileDescriptor(object):
ui_class
,
base_class
=
uic
.
loadUiType
(
Resources
.
get
(
'chat_widget.ui'
))
ui_class
,
base_class
=
uic
.
loadUiType
(
Resources
.
get
(
'chat_widget.ui'
))
class
ChatWidget
(
base_class
,
ui_class
):
class
ChatWidget
(
base_class
,
ui_class
):
implements
(
IObserver
)
implements
(
IObserver
)
...
...
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