2010-09-16 Antonio Gomes <tonikitoo@webkit.org>
authorAndreas Kling <andreas.kling@nokia.com>
Wed, 13 Oct 2010 14:11:32 +0000 (16:11 +0200)
committerAndreas Kling <andreas.kling@nokia.com>
Wed, 13 Oct 2010 14:11:32 +0000 (16:11 +0200)
commit42a55d8b490ed6e3b8071abe360d5900c2f1d009
treea24ba3890e4f24f188bc512ce06a57d96e2d3397
parent009aaea9c9e61eac1aa16693553a0e69acb20da1
2010-09-16  Antonio Gomes  <tonikitoo@webkit.org>

        Reviewed by Andreas Kling.

        [Qt] When switching views (WebViewGraphicsBased <--> WebViewTraditional), QWebPage signals and QActions have to be re-set.

        Recently r67554 changed the way different views use the WebPage class: it was previously being shared between
        different views, but now for each view switch, a new WebPage class is constructed and set. Signals and QAction's
        were not being set to the new WebPage though. Patch fix that, by re constructing the toolbar, and then re-hooking
        all page specific stuff to the UI.

        * QtTestBrowser/launcherwindow.cpp:
        (LauncherWindow::initializeView):
        * QtTestBrowser/mainwindow.cpp:
        (MainWindow::MainWindow):
        (MainWindow::buildUI):
        (MainWindow::setPage):
        * QtTestBrowser/mainwindow.h:
WebKitTools/ChangeLog
WebKitTools/QtTestBrowser/launcherwindow.cpp
WebKitTools/QtTestBrowser/mainwindow.cpp
WebKitTools/QtTestBrowser/mainwindow.h