qint64 QWebSecurityOriginProto::databaseQuota() const
{
  QWebSecurityOrigin *item = qscriptvalue_cast<QWebSecurityOrigin*>(thisObject());
  if (item)
    return item->databaseQuota();
  return 0;
}
예제 #2
0
파일: webpage.cpp 프로젝트: 593in/qupzilla
void WebPage::dbQuotaExceeded(QWebFrame* frame)
{
    if (!frame) {
        return;
    }

    const QWebSecurityOrigin origin = frame->securityOrigin();
    const qint64 oldQuota = origin.databaseQuota();

    frame->securityOrigin().setDatabaseQuota(oldQuota * 2);
}