[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r4078: Apparently they don't have QStringList::length() either. (vidalia/trunk/src/vidalia/log)



Author: edmanm
Date: 2009-08-28 01:55:29 -0400 (Fri, 28 Aug 2009)
New Revision: 4078

Modified:
   vidalia/trunk/src/vidalia/log/StatusEventItemDelegate.cpp
Log:

Apparently they don't have QStringList::length() either.


Modified: vidalia/trunk/src/vidalia/log/StatusEventItemDelegate.cpp
===================================================================
--- vidalia/trunk/src/vidalia/log/StatusEventItemDelegate.cpp	2009-08-28 05:48:45 UTC (rev 4077)
+++ vidalia/trunk/src/vidalia/log/StatusEventItemDelegate.cpp	2009-08-28 05:55:29 UTC (rev 4078)
@@ -151,11 +151,11 @@
   qreal height = 0.0;
 
   textLayout.beginLayout();
-  while (lines.length() < maxLines) {
+  while (lines.size() < maxLines) {
     QTextLine line = textLayout.createLine();
     if (! line.isValid())
       break;
-    if (maxLines <= 0 || lines.length() < maxLines-1) {
+    if (maxLines <= 0 || lines.size() < maxLines-1) {
       // Wrap the current line at or below the maximum line width
       line.setLineWidth(maxLineWidth);
       lines.append(text.mid(line.textStart(), line.textLength()));