Beispiel #1
0
bool KGrSetTheme::readFromDesktopFile(const QString& path)
{
    // Base-class call.
    if (!KgTheme::readFromDesktopFile(path))
        return false;

    // Customised behaviour: interprete "Set" key as "FileName" for SVG file.
    setGraphicsPath (absolutePath (path, customData("Set")));
    return true;
}
Beispiel #2
0
WebVector<WebDragData::CustomData> WebDragData::customData() const
{
    ASSERT(!isNull());
    WebVector<CustomData> customData(static_cast<size_t>(m_private->customData().size()));
    HashMap<String, String>::const_iterator begin = m_private->customData().begin();
    HashMap<String, String>::const_iterator end = m_private->customData().end();
    size_t i = 0;
    for (HashMap<String, String>::const_iterator it = begin; it != end; ++it) {
        CustomData data = {it->first, it->second};
        customData[i++] = data;
    }
    return customData;
}