mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-13 16:45:49 -04:00
Optimized fill of feed items by moving the fill of the hidden area to the first expand of the frame.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8514 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4cb081f4ff
commit
846d5f4f50
27 changed files with 152 additions and 41 deletions
|
@ -317,3 +317,23 @@ string_is_hex(const QString &str)
|
|||
return true;
|
||||
}
|
||||
|
||||
namespace RsStringUtil
|
||||
{
|
||||
|
||||
QString CopyLines(const QString &s, quint16 lines)
|
||||
{
|
||||
int index = -1;
|
||||
for (int i = 0; i < lines; ++i) {
|
||||
index = s.indexOf("\n", index + 1);
|
||||
if (index == -1) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (index != -1) {
|
||||
return s.left(index);
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue