Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20150

setWindowModified(true) does not propagate to parents

    XMLWordPrintable

Details

    Description

      According to the docs calling QWidget::setWindowModified( true ) should cause the event to be propagated up to the top-level parent widget.

      Instead, the widget on which the above call is made makes a useless check to see if it's windowTitle() contains "[*]" which is very unlikely for a child widget. The function then does indeed create a QEvent with type() == ModifiedChange and sends the event.

      The event is correctly passed over to the QWidget::changeEvent() function but this function does not correctly handle it. I think that it should check to see if this is a top-level window and then set the title if so. Or if it is not a top-level window propagate the event up to the parent widget and so on.

      More info can be found at http://developer.qt.nokia.com/forums/viewthread/7176/

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            seanharmer Sean Harmer
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes