projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3307118
)
Fix URL regexp to not include whitespace anymore
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 5 Aug 2008 11:02:53 +0000
(13:02 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 5 Aug 2008 11:02:58 +0000
(13:02 +0200)
src/qtui/chatitem.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatitem.cpp
b/src/qtui/chatitem.cpp
index
adfcd9c
..
f09553b
100644
(file)
--- a/
src/qtui/chatitem.cpp
+++ b/
src/qtui/chatitem.cpp
@@
-241,7
+241,7
@@
void ChatItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
void ChatItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) {
// FIXME dirty and fast hack to make http:// urls klickable
void ChatItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) {
// FIXME dirty and fast hack to make http:// urls klickable
- QRegExp regex("\\b((?:h|f)t{1,2}ps?:
\\/\\/.
+)\\b");
+ QRegExp regex("\\b((?:h|f)t{1,2}ps?:
//[^\\s]
+)\\b");
QString str = data(ChatLineModel::DisplayRole).toString();
int idx = posToCursor(event->pos());
int mi = 0;
QString str = data(ChatLineModel::DisplayRole).toString();
int idx = posToCursor(event->pos());
int mi = 0;