Changeset 54550 in webkit
- Timestamp:
- Feb 9, 2010 7:55:06 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qwebpage.cpp
r54440 r54550 1956 1956 the request to QWebView's createWindow() function; otherwise it returns a null pointer. 1957 1957 1958 If \a type is WebModalDialog, the application must call setWindowModality(Qt::ApplicationModal) on the new window. 1959 1958 1960 \sa acceptNavigationRequest() 1959 1961 */ -
trunk/WebKit/qt/ChangeLog
r54440 r54550 1 2010-02-09 Yael Aharon <yael.aharon@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Webkit in Qt does not have window.showModalDialog 6 https://bugs.webkit.org/show_bug.cgi?id=25585 7 8 Create a new eventloop when runModal() is called. 9 Added comemnt in QWebPage::createWindow that the application is responsible 10 for setting the modality of the appropriate window. 11 12 * Api/qwebpage.cpp: 13 * WebCoreSupport/ChromeClientQt.cpp: 14 (WebCore::ChromeClientQt::ChromeClientQt): 15 (WebCore::ChromeClientQt::~ChromeClientQt): 16 (WebCore::ChromeClientQt::canRunModal): 17 (WebCore::ChromeClientQt::runModal): 18 * WebCoreSupport/ChromeClientQt.h: 19 1 20 2010-01-19 Kenneth Rohde Christiansen <kenneth@webkit.org> 2 21 -
trunk/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp
r53847 r54550 45 45 46 46 #include <qdebug.h> 47 #include <qeventloop.h> 47 48 #include <qtextdocument.h> 48 49 #include <qtooltip.h> … … 63 64 ChromeClientQt::ChromeClientQt(QWebPage* webPage) 64 65 : m_webPage(webPage) 66 , m_eventLoop(0) 65 67 { 66 68 toolBarsVisible = statusBarVisible = menuBarVisible = true; … … 69 71 ChromeClientQt::~ChromeClientQt() 70 72 { 71 73 if (m_eventLoop) 74 m_eventLoop->exit(); 72 75 } 73 76 … … 174 177 bool ChromeClientQt::canRunModal() 175 178 { 176 notImplemented(); 177 return false; 179 return true; 178 180 } 179 181 … … 181 183 void ChromeClientQt::runModal() 182 184 { 183 notImplemented(); 185 m_eventLoop = new QEventLoop(); 186 QEventLoop* eventLoop = m_eventLoop; 187 m_eventLoop->exec(); 188 delete eventLoop; 184 189 } 185 190 -
trunk/WebKit/qt/WebCoreSupport/ChromeClientQt.h
r54069 r54550 35 35 #include "PlatformString.h" 36 36 37 class QEventLoop; 37 38 class QWebPage; 38 39 … … 159 160 bool statusBarVisible; 160 161 bool menuBarVisible; 162 QEventLoop* m_eventLoop; 161 163 }; 162 164 } -
trunk/WebKitTools/ChangeLog
r54549 r54550 1 2010-02-09 Yael Aharon <yael.aharon@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Webkit in Qt does not have window.showModalDialog 6 https://bugs.webkit.org/show_bug.cgi?id=25585 7 8 Set the modality flag when createWindow is called with window type WebWindowDialog. 9 10 * QtLauncher/main.cpp: 11 (WebPage::createWindow): 12 1 13 2010-02-09 Andras Becsi <abecsi@webkit.org> 2 14 -
trunk/WebKitTools/QtLauncher/main.cpp
r54512 r54550 521 521 } 522 522 523 QWebPage* WebPage::createWindow(QWebPage::WebWindowType )523 QWebPage* WebPage::createWindow(QWebPage::WebWindowType type) 524 524 { 525 525 LauncherWindow* mw = new LauncherWindow; 526 if (type == WebModalDialog) 527 mw->setWindowModality(Qt::ApplicationModal); 526 528 mw->show(); 527 529 return mw->page();
Note: See TracChangeset
for help on using the changeset viewer.