projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Making ChatItems in the first column full-height. Also fixes BR #272.
[quassel.git]
/
src
/
qtui
/
chatitem.cpp
diff --git
a/src/qtui/chatitem.cpp
b/src/qtui/chatitem.cpp
index
7a11a66
..
036a6e6
100644
(file)
--- a/
src/qtui/chatitem.cpp
+++ b/
src/qtui/chatitem.cpp
@@
-60,11
+60,11
@@
QVariant ChatItem::data(int role) const {
return model()->data(index, role);
}
return model()->data(index, role);
}
-qreal ChatItem::set
Width(qreal w
) {
+qreal ChatItem::set
Geometry(qreal w, qreal h
) {
if(w == _boundingRect.width()) return _boundingRect.height();
prepareGeometryChange();
_boundingRect.setWidth(w);
if(w == _boundingRect.width()) return _boundingRect.height();
prepareGeometryChange();
_boundingRect.setWidth(w);
-
qreal
h = computeHeight();
+
if(h < 0)
h = computeHeight();
_boundingRect.setHeight(h);
if(haveLayout()) updateLayout();
return h;
_boundingRect.setHeight(h);
if(haveLayout()) updateLayout();
return h;