projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4df7862
)
stop the chat monitor from stealing unhandled double click events
author
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 11 Aug 2008 15:28:54 +0000
(17:28 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 11 Aug 2008 15:28:54 +0000
(17:28 +0200)
src/qtui/chatmonitorview.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatmonitorview.cpp
b/src/qtui/chatmonitorview.cpp
index
6d5d667
..
e004e0c
100644
(file)
--- a/
src/qtui/chatmonitorview.cpp
+++ b/
src/qtui/chatmonitorview.cpp
@@
-61,10
+61,12
@@
void ChatMonitorView::contextMenuEvent(QContextMenuEvent *event) {
}
void ChatMonitorView::mouseDoubleClickEvent(QMouseEvent *event) {
}
void ChatMonitorView::mouseDoubleClickEvent(QMouseEvent *event) {
- if(scene()->sectionByScenePos(event->pos()) != ChatLineModel::SenderColumn)
+ if(scene()->sectionByScenePos(event->pos()) != ChatLineModel::SenderColumn) {
+ ChatView::mouseDoubleClickEvent(event);
return;
return;
+ }
-
//ChatItem *chatItem = static_cast<ChatItem *>(itemAt(event->pos())
);
+
event->accept(
);
ChatItem *chatItem = dynamic_cast<ChatItem *>(itemAt(event->pos()));
BufferId bufferId = chatItem->data(MessageModel::BufferIdRole).value<BufferId>();
if(!bufferId.isValid())
ChatItem *chatItem = dynamic_cast<ChatItem *>(itemAt(event->pos()));
BufferId bufferId = chatItem->data(MessageModel::BufferIdRole).value<BufferId>();
if(!bufferId.isValid())