Changeset 52144 in webkit


Ignore:
Timestamp:
Dec 15, 2009 1:29:35 AM (14 years ago)
Author:
zecke@webkit.org
Message:

[Qt] Do not disable the inspector on show and hide

https://bugs.webkit.org/show_bug.cgi?id=31851

On Qt/X11 with some window managers the window will be
hidden when switching windows. In this case all the results
are gone when coming back to the window.

Attempt to use the CloseEvent to figure out if the window
was closed and withdrawn as this is more friendly to the
user of the inspector client.

  • Api/qwebinspector.cpp:

(QWebInspector::hideEvent):
(QWebInspector::closeEvent):

  • Api/qwebinspector.h:
Location:
trunk/WebKit/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebinspector.cpp

    r50656 r52144  
    160160void QWebInspector::hideEvent(QHideEvent* event)
    161161{
     162}
     163
     164/*! \reimp */
     165void QWebInspector::closeEvent(QCloseEvent* event)
     166{
    162167    if (d->page)
    163168        d->page->d->inspectorController()->setWindowVisible(false);
  • trunk/WebKit/qt/Api/qwebinspector.h

    r50344 r52144  
    4444    void showEvent(QShowEvent* event);
    4545    void hideEvent(QHideEvent* event);
     46    void closeEvent(QCloseEvent* event);
    4647
    4748private:
  • trunk/WebKit/qt/ChangeLog

    r52111 r52144  
     12009-11-24  Holger Hans Peter Freyther  <zecke@selfish.org>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Do not disable the inspector on show and hide
     6        https://bugs.webkit.org/show_bug.cgi?id=31851
     7
     8        On Qt/X11 with some window managers the window will be
     9        hidden when switching windows. In this case all the results
     10        are gone when coming back to the window.
     11
     12        Attempt to use the CloseEvent to figure out if the window
     13        was closed and withdrawn as this is more friendly to the
     14        user of the inspector client.
     15
     16        * Api/qwebinspector.cpp:
     17        (QWebInspector::hideEvent):
     18        (QWebInspector::closeEvent):
     19        * Api/qwebinspector.h:
     20
    1212009-12-14  Benjamin Poulain  <benjamin.poulain@nokia.com>
    222
Note: See TracChangeset for help on using the changeset viewer.