projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef2224
)
s/int/qreal/
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Mon, 1 Sep 2008 23:08:12 +0000
(
01:08
+0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Mon, 1 Sep 2008 23:08:12 +0000
(
01:08
+0200)
src/qtui/chatlinemodelitem.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatlinemodelitem.cpp
b/src/qtui/chatlinemodelitem.cpp
index
0e93ddb
..
7e95228
100644
(file)
--- a/
src/qtui/chatlinemodelitem.cpp
+++ b/
src/qtui/chatlinemodelitem.cpp
@@
-111,7
+111,7
@@
void ChatLineModelItem::computeWrapList() const {
Mode mode = SearchEnd;
ChatLineModel::Word word;
word.start = 0;
-
int
wordstartx = 0;
+
qreal
wordstartx = 0;
QTextLayout layout(_contents.plainText);
QTextOption option;
@@
-144,8
+144,8
@@
void ChatLineModelItem::computeWrapList() const {
mode = SearchStart;
continue;
}
-
int
wordendx = line.cursorToX(oldidx);
-
int
trailingendx = line.cursorToX(idx);
+
qreal
wordendx = line.cursorToX(oldidx);
+
qreal
trailingendx = line.cursorToX(idx);
word.width = wordendx - wordstartx;
word.trailing = trailingendx - wordendx;
wordstartx = trailingendx;