Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

QByteArray ClipDrag::encodedData ( const char *  mime  )  const [protected]

Reimplemented for internal reasons; the API is not affected.

Definition at line 68 of file clipdrag.cpp.

References m_xml.

{
    QCString mimetype(mime);

    if (mimetype == "application/x-kdenlive-clip") {
      QByteArray encoded;
      encoded.resize(m_xml.length() + 1);
      memcpy(encoded.data(), m_xml.utf8().data(), m_xml.length() + 1);
      return encoded;
    } else {
      return KURLDrag::encodedData(mime);
    }
}


Generated by  Doxygen 1.6.0   Back to index