X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.h;h=3ed2cee358777649bad97a3083d954132b7d73c6;hp=51b59f975c5b1a7be3cf6f54b8e80c34fdb921bf;hb=0d49f7e83bd1055711e66aa880f3a0d62f7eefc9;hpb=2e023191fb47f5cbd186f7274f8ee1b5d1cc94c3 diff --git a/src/qtui/chatitem.h b/src/qtui/chatitem.h index 51b59f97..3ed2cee3 100644 --- a/src/qtui/chatitem.h +++ b/src/qtui/chatitem.h @@ -83,8 +83,12 @@ protected: _boundingRect.setWidth(width); _boundingRect.setHeight(height); } - inline void setHeight(const qreal &height) { _boundingRect.setHeight(height); } - inline void setWidth(const qreal &width) { _boundingRect.setWidth(width); } + inline void setHeight(const qreal &height) { + _boundingRect.setHeight(height); + } + inline void setWidth(const qreal &width) { + _boundingRect.setWidth(width); + } private: // internal selection stuff @@ -172,10 +176,6 @@ private: void showWebPreview(const Clickable &click); void clearWebPreview(); - - // WARNING: setGeometry and setHeight should not be used without either: - // a) calling prepareGeometryChange() immediately before setColumns() - // b) calling Chatline::setPos() immediately afterwards qreal setGeometryByWidth(qreal w); friend class ChatLine; friend struct ContentsChatItemPrivate;