Logo Search packages:      
Sourcecode: qt-gstreamer version File versions  Download package

QTGLIB_EXPORT QDebug operator<< ( QDebug  debug,
const Value value 
) [related]

Definition at line 349 of file value.cpp.

References isValid(), and toString().

{
    debug.nospace() << "QGlib::Value";
    if(!value.isValid()) {
        debug << "(<invalid>)";
        return debug.space();
    } else {
        QString str = value.toString();
        if (str.isEmpty()) {
            if (g_value_fits_pointer(value)) {
                quintptr ptr = reinterpret_cast<quintptr>(g_value_peek_pointer(value));
                str = QString(QLatin1String("0x%1")).arg(ptr, sizeof(quintptr)*2,
                                                         16, QLatin1Char('0'));
            } else {
                str = QLatin1String("<unknown value>");
            }
        }

        debug << "(" << value.type().name() << ", " << str << ")";
        return debug.space();
    }
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index