added colibri-line

This commit is contained in:
arcan1s
2014-01-24 02:53:58 +04:00
parent b738c613b4
commit 1b66f563b4
3 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -ruN colibri-0.3.0.orig/app/notificationwidget.cpp colibri-0.3.0/app/notificationwidget.cpp
--- colibri-0.3.0.orig/app/notificationwidget.cpp 2013-05-14 19:30:28.000000000 +0400
+++ colibri-0.3.0/app/notificationwidget.cpp 2014-01-24 02:35:26.653473727 +0400
@@ -311,7 +311,7 @@
text = "<b>" + mSummary + "</b>";
}
if (!mBody.isEmpty()) {
- text += mBody;
+ text += mBody.replace(QString("\n"), QString("<br>"));
}
mTextLabel->setText(text);
mTextLabel->resize(mTextLabel->preferredSize());