Bug 35743 - [Qt] QWebView and QWebPage is missing a function to clear the modified flag
Summary: [Qt] QWebView and QWebPage is missing a function to clear the modified flag
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-03-04 06:50 PST by Tor Arne Vestbø
Modified: 2014-02-03 03:13 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tor Arne Vestbø 2010-03-04 06:50:47 PST
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).
Comment 1 Antonio Gomes 2010-03-09 07:44:01 PST
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
}
Comment 2 Jocelyn Turcotte 2014-02-03 03:13:27 PST
=== 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.