Changeset 92683 in webkit
- Timestamp:
- Aug 9, 2011 7:24:36 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r92555 r92683 1 2011-08-09 Siddharth Mathur <siddharth.mathur@nokia.com> 2 3 [Qt] Simplify code by removing QT_NO_DESKTOPSERVICES and QT_NO_NETWORKDISKCACHE 4 https://bugs.webkit.org/show_bug.cgi?id=65880 5 6 Reviewed by Andreas Kling. 7 8 QDesktopServices and QNetworkDiskCache have been around for a while now. Kill flags which 9 check for their feature flags. Assume that any reasonable Qt build provides them. 10 11 * Source/WebKit.pri: 12 1 13 2011-08-06 Aron Rosenberg <arosenberg@logitech.com> 2 14 -
trunk/Source/WebKit.pri
r92555 r92683 170 170 DEFINES *= QT_NO_CRASHHANDLER 171 171 DEFINES *= QT_NO_CURSOR 172 DEFINES *= QT_NO_DESKTOPSERVICES173 172 DEFINES *= QT_NO_FILEDIALOG 174 173 DEFINES *= QT_NO_GRAPHICSEFFECT -
trunk/Source/WebKit/qt/Api/qwebsettings.cpp
r90341 r92683 1137 1137 void QWebSettings::enablePersistentStorage(const QString& path) 1138 1138 { 1139 #ifndef QT_NO_DESKTOPSERVICES1140 1139 QString storagePath; 1141 1140 … … 1170 1169 } 1171 1170 #endif 1172 #endif1173 1171 } 1174 1172 -
trunk/Source/WebKit/qt/ChangeLog
r92479 r92683 1 2011-08-09 Siddharth Mathur <siddharth.mathur@nokia.com> 2 3 [Qt] Simplify code by removing QT_NO_DESKTOPSERVICES and QT_NO_NETWORKDISKCACHE 4 https://bugs.webkit.org/show_bug.cgi?id=65880 5 6 Reviewed by Andreas Kling. 7 8 QDesktopServices and QNetworkDiskCache have been around for a while now. Kill flags which 9 check for their feature flags. Assume that any reasonable Qt build provides them. 10 11 * Api/qwebsettings.cpp: 12 (QWebSettings::enablePersistentStorage): 13 1 14 2011-08-05 Dawit Alemayehu <adawit@kde.org> 2 15 -
trunk/Tools/ChangeLog
r92669 r92683 1 2011-08-09 Siddharth Mathur <siddharth.mathur@nokia.com> 2 3 [Qt] Simplify code by removing QT_NO_DESKTOPSERVICES and QT_NO_NETWORKDISKCACHE 4 https://bugs.webkit.org/show_bug.cgi?id=65880 5 6 Reviewed by Andreas Kling. 7 8 QDesktopServices and QNetworkDiskCache have been around for a while now. Kill flags which 9 check for their feature flags. Assume that any reasonable Qt build provides them. 10 * QtTestBrowser/cookiejar.cpp: 11 (TestBrowserCookieJar::TestBrowserCookieJar): 12 * QtTestBrowser/launcherwindow.cpp: 13 (LauncherWindow::createChrome): 14 (LauncherWindow::setDiskCache): 15 * QtTestBrowser/main.cpp: 16 (LauncherApplication::handleUserOptions): 17 * QtTestBrowser/webpage.cpp: 18 (WebPage::openUrlInDefaultBrowser): 19 1 20 2011-08-09 Adam Barth <abarth@webkit.org> 2 21 -
trunk/Tools/QtTestBrowser/cookiejar.cpp
r92481 r92683 42 42 connect(&m_timer, SIGNAL(timeout()), this, SLOT(saveToDisk())); 43 43 44 #ifndef QT_NO_DESKTOPSERVICES45 44 QString path = QDesktopServices::storageLocation(QDesktopServices::CacheLocation); 46 #else47 QString path = QDir::homePath() + "/.QtTestBrowser";48 #endif49 50 45 QDir().mkpath(path); 51 46 m_file.setFileName(path + "/cookieJar"); -
trunk/Tools/QtTestBrowser/launcherwindow.cpp
r92478 r92683 46 46 #endif 47 47 48 #if !defined(QT_NO_NETWORKDISKCACHE) && !defined(QT_NO_DESKTOPSERVICES)49 48 #include <QtGui/QDesktopServices> 50 49 #include <QtNetwork/QNetworkDiskCache> 51 #endif52 50 53 51 const int gExitClickArea = 80; … … 436 434 QMenu* settingsMenu = menuBar()->addMenu("&Settings"); 437 435 438 #if !defined(QT_NO_NETWORKDISKCACHE) && !defined(QT_NO_DESKTOPSERVICES)439 436 QAction* toggleDiskCache = settingsMenu->addAction("Use Disk Cache", this, SLOT(setDiskCache(bool))); 440 437 toggleDiskCache->setCheckable(true); 441 438 toggleDiskCache->setChecked(m_windowOptions.useDiskCache); 442 #endif443 439 444 440 QAction* toggleAutoLoadImages = settingsMenu->addAction("Disable Auto Load Images", this, SLOT(toggleAutoLoadImages(bool))); … … 823 819 void LauncherWindow::setDiskCache(bool enable) 824 820 { 825 #if !defined(QT_NO_NETWORKDISKCACHE) && !defined(QT_NO_DESKTOPSERVICES)826 821 m_windowOptions.useDiskCache = enable; 827 822 QNetworkDiskCache* cache = 0; … … 832 827 } 833 828 page()->networkAccessManager()->setCache(cache); 834 #endif835 829 } 836 830 -
trunk/Tools/QtTestBrowser/main.cpp
r92478 r92683 183 183 #endif 184 184 << QString("[-viewport-update-mode %1]").arg(formatKeys(updateModes)).toLatin1().data() 185 #if !defined(QT_NO_NETWORKDISKCACHE) && !defined(QT_NO_DESKTOPSERVICES)186 185 << "[-disk-cache]" 187 #endif188 186 << "[-cache-webview]" 189 187 << "[-maximize]" … … 223 221 224 222 if (args.contains("-disk-cache")) { 225 #if !defined(QT_NO_NETWORKDISKCACHE) && !defined(QT_NO_DESKTOPSERVICES)226 223 windowOptions.useDiskCache = true; 227 #else228 appQuit(1, "-disk-cache only works if QNetworkDiskCache and QDesktopServices is enabled in your Qt build.");229 #endif230 224 } 231 225 -
trunk/Tools/QtTestBrowser/webpage.cpp
r79668 r92683 109 109 void WebPage::openUrlInDefaultBrowser(const QUrl& url) 110 110 { 111 #ifndef QT_NO_DESKTOPSERVICES112 111 if (QAction* action = qobject_cast<QAction*>(sender())) 113 112 QDesktopServices::openUrl(action->data().toUrl()); 114 113 else 115 114 QDesktopServices::openUrl(url); 116 #endif117 115 } 118 116
Note: See TracChangeset
for help on using the changeset viewer.