Revision f60a4224 kadu-core/gui/windows/status-window-description-proxy-model.cpp
| b/kadu-core/gui/windows/status-window-description-proxy-model.cpp | ||
|---|---|---|
| 41 | 41 |
return QSortFilterProxyModel::data(index, role); |
| 42 | 42 |
|
| 43 | 43 |
QString text = QSortFilterProxyModel::data(index, DescriptionRole).toString(); |
| 44 |
text = text.replace('\n', QString::fromUtf8(" \u21B5 "));
|
|
| 44 |
// it'd be easier to type QString::fromUtf8(" \u21B5 ") but it doesn't work in MSVC...
|
|
| 45 |
QChar arrow21b5[] = { QChar(' '), QChar(0xb5, 0x21), QChar(' '), QChar(0) };
|
|
| 46 |
text = text.replace('\n', QString(arrow21b5));
|
|
| 45 | 47 |
text = text.replace(QRegExp(" +"), " ");
|
| 46 | 48 |
text = text.trimmed(); |
| 47 | 49 |
text = StringUtils::ellipsis(text, DESCRIPTION_SELECT_DISPLAY_MAX_LENGTH); |
Also available in: Unified diff