summaryrefslogtreecommitdiff
path: root/Source/WebKit/qt/Api/qwebpage.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-06-20 13:01:08 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-06-20 13:01:08 +0200
commit49233e234e5c787396cadb2cea33b31ae0cd65c1 (patch)
tree5410cb9a8fd53168bb60d62c54b654d86f03c38d /Source/WebKit/qt/Api/qwebpage.cpp
parentb211c645d8ab690f713515dfdc84d80b11c27d2c (diff)
downloadqtwebkit-49233e234e5c787396cadb2cea33b31ae0cd65c1.tar.gz
Imported WebKit commit 3a8c29f35d00659d2ce7a0ccdfa8304f14e82327 (http://svn.webkit.org/repository/webkit/trunk@120813)
New snapshot with Windows build fixes
Diffstat (limited to 'Source/WebKit/qt/Api/qwebpage.cpp')
-rw-r--r--Source/WebKit/qt/Api/qwebpage.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/Source/WebKit/qt/Api/qwebpage.cpp b/Source/WebKit/qt/Api/qwebpage.cpp
index 8fb319dd4..b1f2eccdd 100644
--- a/Source/WebKit/qt/Api/qwebpage.cpp
+++ b/Source/WebKit/qt/Api/qwebpage.cpp
@@ -844,7 +844,7 @@ QMenu *QWebPage::createStandardContextMenu()
{
#ifndef QT_NO_CONTEXTMENU
QMenu* menu = d->currentContextMenu.data();
- d->currentContextMenu.clear();
+ d->currentContextMenu = 0;
return menu;
#else
return 0;
@@ -1689,12 +1689,12 @@ IntPoint QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch(const IntPoi
\value CopyLinkToClipboard Copy the current link to the clipboard.
\value OpenImageInNewWindow Open the highlighted image in a new window.
\value DownloadImageToDisk Download the highlighted image to the disk.
- \value CopyImageToClipboard Copy the highlighted image to the clipboard.
+ \value CopyImageToClipboard Copy the highlighted image to the clipboard. (Added in Qt 4.8)
\value CopyImageUrlToClipboard Copy the highlighted image's URL to the clipboard.
\value Back Navigate back in the history of navigated links.
\value Forward Navigate forward in the history of navigated links.
\value Stop Stop loading the current page.
- \value StopScheduledPageRefresh Stop all pending page refresh/redirect requests.
+ \value StopScheduledPageRefresh Stop all pending page refresh/redirect requests. (Added in Qt 4.7)
\value Reload Reload the current page.
\value ReloadAndBypassCache Reload the current page, but do not use any local cache. (Added in Qt 4.6)
\value Cut Cut the content currently selected into the clipboard.
@@ -1738,19 +1738,19 @@ IntPoint QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch(const IntPoi
\value InsertParagraphSeparator Insert a new paragraph.
\value InsertLineSeparator Insert a new line.
\value SelectAll Selects all content.
- \value PasteAndMatchStyle Paste content from the clipboard with current style.
- \value RemoveFormat Removes formatting and style.
- \value ToggleStrikethrough Toggle the formatting between strikethrough and normal style.
- \value ToggleSubscript Toggle the formatting between subscript and baseline.
- \value ToggleSuperscript Toggle the formatting between supercript and baseline.
- \value InsertUnorderedList Toggles the selection between an ordered list and a normal block.
- \value InsertOrderedList Toggles the selection between an ordered list and a normal block.
- \value Indent Increases the indentation of the currently selected format block by one increment.
- \value Outdent Decreases the indentation of the currently selected format block by one increment.
- \value AlignCenter Applies center alignment to content.
- \value AlignJustified Applies full justification to content.
- \value AlignLeft Applies left justification to content.
- \value AlignRight Applies right justification to content.
+ \value PasteAndMatchStyle Paste content from the clipboard with current style. (Added in Qt 4.6)
+ \value RemoveFormat Removes formatting and style. (Added in Qt 4.6)
+ \value ToggleStrikethrough Toggle the formatting between strikethrough and normal style. (Added in Qt 4.6)
+ \value ToggleSubscript Toggle the formatting between subscript and baseline. (Added in Qt 4.6)
+ \value ToggleSuperscript Toggle the formatting between supercript and baseline. (Added in Qt 4.6)
+ \value InsertUnorderedList Toggles the selection between an ordered list and a normal block. (Added in Qt 4.6)
+ \value InsertOrderedList Toggles the selection between an ordered list and a normal block. (Added in Qt 4.6)
+ \value Indent Increases the indentation of the currently selected format block by one increment. (Added in Qt 4.6)
+ \value Outdent Decreases the indentation of the currently selected format block by one increment. (Added in Qt 4.6)
+ \value AlignCenter Applies center alignment to content. (Added in Qt 4.6)
+ \value AlignJustified Applies full justification to content. (Added in Qt 4.6)
+ \value AlignLeft Applies left justification to content. (Added in Qt 4.6)
+ \value AlignRight Applies right justification to content. (Added in Qt 4.6)
\omitvalue WebActionCount
@@ -2096,7 +2096,7 @@ void QWebPage::javaScriptAlert(QWebFrame *frame, const QString& msg)
This function is called whenever a JavaScript program running inside \a frame calls the confirm() function
with the message, \a msg. Returns true if the user confirms the message; otherwise returns false.
- The default implementation executes the query using QMessageBox::information with QMessageBox::Yes and QMessageBox::No buttons.
+ The default implementation executes the query using QMessageBox::information with QMessageBox::Ok and QMessageBox::Cancel buttons.
*/
bool QWebPage::javaScriptConfirm(QWebFrame *frame, const QString& msg)
{
@@ -2109,8 +2109,8 @@ bool QWebPage::javaScriptConfirm(QWebFrame *frame, const QString& msg)
box.setWindowTitle(tr("JavaScript Confirm - %1").arg(mainFrame()->url().host()));
box.setTextFormat(Qt::PlainText);
box.setText(msg);
- box.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
- return QMessageBox::Yes == box.exec();
+ box.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
+ return QMessageBox::Ok == box.exec();
#endif
}