Qt 4.8
Functions
qeglproperties.cpp File Reference
#include <QtCore/qdebug.h>
#include <QtCore/qstringlist.h>
#include "qeglproperties_p.h"
#include "qeglcontext_p.h"

Go to the source code of this file.

Functions

static void addTag (QString &str, const QString &tag)
 

Function Documentation

◆ addTag()

static void addTag ( QString str,
const QString tag 
)
static

Definition at line 290 of file qeglproperties.cpp.

Referenced by QEglProperties::toString().

291 {
292  int lastnl = str.lastIndexOf(QLatin1String("\n"));
293  if (lastnl == -1)
294  lastnl = 0;
295  if ((str.length() - lastnl) >= 50)
296  str += QLatin1String("\n ");
297  str += tag;
298 }
int length() const
Returns the number of characters in this string.
Definition: qstring.h:696
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int lastIndexOf(QChar c, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Definition: qstring.cpp:3000