Changeset 76646 in webkit


Ignore:
Timestamp:
Jan 25, 2011 3:20:37 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-01-25 Mansi Mithal <mansi.mithal@nokia.com>

Reviewed by Antonio Gomes.

QtTestBrowser should have a UI Settings to prevent loading images
https://bugs.webkit.org/show_bug.cgi?id=52409

Added a new action item named "DisableAutoLoadImages"
under the "Settings" menu

  • QtTestBrowser/launcherwindow.cpp: (LauncherWindow::createChrome): (LauncherWindow::toggleAutoLoadImages):
  • QtTestBrowser/launcherwindow.h:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r76642 r76646  
     12011-01-25  Mansi Mithal  <mansi.mithal@nokia.com>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        QtTestBrowser should have a UI Settings to prevent loading images
     6        https://bugs.webkit.org/show_bug.cgi?id=52409
     7       
     8        Added a new action item named "DisableAutoLoadImages"
     9        under the "Settings" menu
     10
     11        * QtTestBrowser/launcherwindow.cpp:
     12        (LauncherWindow::createChrome):
     13        (LauncherWindow::toggleAutoLoadImages):
     14        * QtTestBrowser/launcherwindow.h:
     15
    1162011-01-25  Dirk Pranke  <dpranke@chromium.org>
    217
  • trunk/Tools/QtTestBrowser/launcherwindow.cpp

    r76286 r76646  
    368368    QMenu* settingsMenu = menuBar()->addMenu("&Settings");
    369369
     370    QAction* toggleAutoLoadImages = settingsMenu->addAction("Disable Auto Load Images", this, SLOT(toggleAutoLoadImages(bool)));
     371    toggleAutoLoadImages->setCheckable(true);
     372    toggleAutoLoadImages->setChecked(false);
     373
    370374    QAction* toggleInterruptingJavaScripteEnabled = settingsMenu->addAction("Enable interrupting js scripts", this, SLOT(toggleInterruptingJavaScriptEnabled(bool)));
    371375    toggleInterruptingJavaScripteEnabled->setCheckable(true);
     
    771775}
    772776
     777void LauncherWindow::toggleAutoLoadImages(bool enable)
     778{
     779    page()->settings()->setAttribute(QWebSettings::AutoLoadImages, !enable);
     780}
     781
    773782#if defined(QT_CONFIGURED_WITH_OPENGL)
    774783void LauncherWindow::toggleQGLWidgetViewport(bool enable)
  • trunk/Tools/QtTestBrowser/launcherwindow.h

    r75908 r76646  
    164164    void toggleInterruptingJavaScriptEnabled(bool enable);
    165165    void toggleJavascriptCanOpenWindows(bool enable);
     166    void toggleAutoLoadImages(bool enable);
    166167
    167168#if defined(QT_CONFIGURED_WITH_OPENGL)
Note: See TracChangeset for help on using the changeset viewer.