qreal ContentsChatItem::setGeometryByWidth(qreal w) {
if(w != width()) {
+ prepareGeometryChange();
setWidth(w);
// compute height
int lines = 1;
QList<ContentsChatItem::Clickable> ContentsChatItem::findClickables() const {
// For matching URLs
static QString urlEnd("(?:>|[,.;:\"]*\\s|\\b|$)");
- static QString urlChars("(?:[\\w\\-~@/?&=+$()!%#]|[,.;:]\\w)");
+ static QString urlChars("(?:[,.;:]*[\\w\\-~@/?&=+$()!%#])");
static QRegExp regExp[] = {
// URL