157 "0 is an invalid column number. The first column number is 1.");
206 #ifndef QT_NO_DEBUG_STREAM 209 debug <<
"QSourceLocation(" 210 << sourceLocation.
uri()
212 << sourceLocation.
line()
214 << sourceLocation.
column()
The QDebug class provides an output stream for debugging information.
qint64 line() const
Returns the current line number.
bool isValid() const
Returns true if the URL is valid; otherwise returns false.
#define QT_END_NAMESPACE
This macro expands to.
QDebug operator<<(QDebug debug, const QSourceLocation &sourceLocation)
Prints sourceLocation to the debug stream debug.
QString toString(FormattingOptions options=None) const
Returns the human-displayable string representation of the URL.
bool operator==(const QSourceLocation &other) const
Returns true if this QSourceLocation is identical to other.
~QSourceLocation()
Destructor.
void setUri(const QUrl &newUri)
Sets the URI to newUri.
void setLine(qint64 newLine)
Sets the line number to newLine.
Contains macros for debugging.
The QUrl class provides a convenient interface for working with URLs.
QSourceLocation & operator=(const QSourceLocation &other)
Assigns this QSourceLocation instance to other.
uint qHash(const QSourceLocation &location)
QUrl uri() const
Returns the resource that this QSourceLocation refers to.
bool isNull() const
Returns true if this QSourceLocation doesn't identify anything.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void setColumn(qint64 newColumn)
Sets the column number to newColumn.
QSourceLocation()
Construct a QSourceLocation that doesn't identify anything at all.
The QSourceLocation class identifies a location in a resource by URI, line, and column.
#define Q_ASSERT_X(cond, where, what)
static QTestResult::TestLocation location
qint64 column() const
Returns the current column number.
bool operator!=(const QSourceLocation &other) const
Returns the opposite of applying operator==() for this QXmlName and other.