76 int lineNumber,
int columnNumber,
80 if (!fileName.
isEmpty() || (lineNumber != -1)) {
85 if (lineNumber != -1) {
88 if (columnNumber != -1) {
97 FILE *fp = (type ==
QtDebugMsg) ? stdout : stderr;
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QVariant class acts like a union for the most common Qt data types.
#define QT_END_NAMESPACE
This macro expands to.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
QScriptStdMessageHandlerPrivate()
QtMsgType
This enum describes the messages that can be sent to a message handler (QtMsgHandler).
~QScriptStdMessageHandler()
#define QT_BEGIN_NAMESPACE
This macro expands to.
void message(QtMsgType type, const QString &text, const QString &fileName=QString(), int lineNumber=-1, int columnNumber=-1, const QVariant &data=QVariant())
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
~QScriptStdMessageHandlerPrivate()
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
const char * constData() const
Returns a pointer to the data stored in the byte array.
QString & append(QChar c)
QScriptStdMessageHandler()
static QString fileName(const QString &fileUrl)
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.