Bug 35743
Summary: | [Qt] QWebView and QWebPage is missing a function to clear the modified flag | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tor Arne Vestbø <vestbo> |
Component: | WebKit Qt | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Enhancement | CC: | hausmann, tonikitoo |
Priority: | P2 | Keywords: | Qt, QtTriaged |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Tor Arne Vestbø
This bug report originated from internal issue QT-1233
--- Description ---
Right now "modified" is a property of QWebView/Page, it is set if the content is edited. However, there is no way to clear this flag (useful e.g. after the document is saved or submitted).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Antonio Gomes
looking at the qwebpage implementation for the getter of this property, I do not see a very clean way to add a setter method.
it would be changing the undoStack status, which would have to be discussed if is a good thing to provide.
Simon, do you think it is a WONTFIX ?
It would be user if reporter had provided the gain for doing that :-(
/*!
\property QWebPage::modified
\brief whether the page contains unsubmitted form data
By default, this property is false.
*/
bool QWebPage::isModified() const
{
#ifdef QT_NO_UNDOSTACK
return false;
#else
if (!d->undoStack)
return false;
return d->undoStack->canUndo();
#endif // QT_NO_UNDOSTACK
}
Jocelyn Turcotte
=== Bulk closing of Qt bugs ===
If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.
If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.