Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11848

Designer wrongfully claims to have changed file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • Qt Creator 3.2.0-rc1
    • Qt Creator 3.1.0-rc1, Qt Creator 3.1.2
    • Quick Designer
    • None
    • Windows 7 64 bit

    Description

      1. Open qtquick1\examples\declarative\ui-components\dialcontrol\qml\dialcontrol\dialcontrol.qml from Qt5's sources.
      2. Switch to Design mode.
      3. In the Navigator, select the slider item.
        An asterisk appears next to the file name as if changes were made. Saving and diffing the file shows that its contents did not change.

      The Designer should not change a file if the user did not edit anything. If there are no changes in a file, the Designer should not indicate unsaved changes.

      Stacktrace:

      0 QmlDesigner::RewriterView::variantPropertiesChanged rewriterview.cpp 232 0x7f4bd56d5d0a
      1 QmlDesigner::Internal::ModelPrivate::notifyVariantPropertiesChanged model.cpp 1102 0x7f4bd5704123
      2 QmlDesigner::Internal::ModelPrivate::setVariantProperty model.cpp 1469 0x7f4bd5707524
      3 QmlDesigner::VariantProperty::setValue variantproperty.cpp 80 0x7f4bd57295f0
      4 QmlDesigner::QmlObjectNode::setVariantProperty qmlobjectnode.cpp 51 0x7f4bd575d63a
      5 GradientModel::setColor gradientmodel.cpp 184 0x7f4bd57c5827
      6 GradientModel::qt_static_metacall moc_gradientmodel.cpp 123 0x7f4bd585d854
      7 GradientModel::qt_metacall moc_gradientmodel.cpp 171 0x7f4bd585da9e
      8 CallMethod qv4qobjectwrapper.cpp 1121 0x7f4be36e7323
      9 CallPrecise qv4qobjectwrapper.cpp 1368 0x7f4be36e7fc2
      10 QV4::QObjectMethod::callInternal qv4qobjectwrapper.cpp 1857 0x7f4be36e8601
      11 call qv4object_p.h 275 0x7f4be366f3d6
      12 QV4::Runtime::callProperty qv4runtime.cpp 890 0x7f4be366f3d6
      13 ?? 0x7f4b8ad6ead0
      14 ?? 0x91f2bb8
      15 ?? 0x7f4ae0b9f808
      16 ??

      Attachments

        Issue Links

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

          Activity

            People

              bubke Marco Bubke
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes