2011-02-04 Kundu Suchismita <suchi.kundu@nokia.com>
[WebKit.git] / Tools / QtTestBrowser / main.cpp
index ec5f1d9408de2bb31d9bf4cdc291b94c5438fad2..eecd9c30dc3acb3e9bd1926c3e27cf7692a481e1 100644 (file)
@@ -164,18 +164,18 @@ void LauncherApplication::handleUserOptions()
     }
     
     if (args.contains("-local-storage-enabled"))
-        QWebSettings::globalSettings()->setAttribute(QWebSettings::LocalStorageEnabled, true);
+        windowOptions.useLocalStorage = true;
         
     if (args.contains("-offline-storage-database-enabled"))
-        QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true);
+        windowOptions.useOfflineStorageDatabase = true;
         
     if (args.contains("-offline-web-application-cache-enabled"))   
-        QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, true);
+        windowOptions.useOfflineWebApplicationCache = true;
     
     int setOfflineStorageDefaultQuotaIndex = args.indexOf("-set-offline-storage-default-quota");
     if (setOfflineStorageDefaultQuotaIndex != -1) {
-        int maxSize = takeOptionValue(&args, setOfflineStorageDefaultQuotaIndex).toInt();
-        QWebSettings::globalSettings()->setOfflineStorageDefaultQuota(maxSize);
+        unsigned int maxSize = takeOptionValue(&args, setOfflineStorageDefaultQuotaIndex).toUInt();
+        windowOptions.offlineStorageDefaultQuotaSize = maxSize;
     }   
     
     if (defaultForAnimations)