Remove unnecessary QtQuick 1.1 effectiveLayoutDirection, effectiveHorizontalAlignment...
authorJoona Petrell <joona.t.petrell@nokia.com>
Thu, 14 Apr 2011 07:36:38 +0000 (10:36 +0300)
committerJoona Petrell <joona.t.petrell@nokia.com>
Fri, 27 May 2011 07:16:35 +0000 (10:16 +0300)
commitfbe0d24bdd429248dbf9e9be592f15fd7b1648bc
tree2f47219f2c1122c7c0b18f1be337be21ab752610
parent67ed18497705fa938728c505d165173dc5d3de68
Remove unnecessary QtQuick 1.1 effectiveLayoutDirection, effectiveHorizontalAlignment and anchors.mirror properties

* these properties are seldomly used
* they confuse developers that do not care about right-to-left user interfaces
* LayoutMirroring.enabled property can be used instead to determine if mirroring is enabled
* if needed, you can easily determine the effective layout directions and alignments
  with a little bit of JavaScript:

function effectiveLayoutDirection() {
    if (LayoutMirroring.enabled)
        return (listView.layoutDirection == Qt.LeftToRight) ? Qt.RightToLeft : Qt.LeftToRight;
    else
        return listView.layoutDirection;
}

Task-number: QTBUG-11042
Reviewed-by: Martin Jones
18 files changed:
doc/src/declarative/righttoleft.qdoc
doc/src/declarative/whatsnew.qdoc
examples/declarative/righttoleft/layoutdirection/layoutdirection.qml
src/declarative/graphicsitems/qdeclarativeanchors_p.h
src/declarative/graphicsitems/qdeclarativegridview.cpp
src/declarative/graphicsitems/qdeclarativegridview_p.h
src/declarative/graphicsitems/qdeclarativeitem.cpp
src/declarative/graphicsitems/qdeclarativelistview.cpp
src/declarative/graphicsitems/qdeclarativelistview_p.h
src/declarative/graphicsitems/qdeclarativepositioners.cpp
src/declarative/graphicsitems/qdeclarativepositioners_p.h
src/declarative/graphicsitems/qdeclarativetext.cpp
src/declarative/graphicsitems/qdeclarativetext_p.h
src/declarative/graphicsitems/qdeclarativetextedit.cpp
src/declarative/graphicsitems/qdeclarativetextedit_p.h
src/declarative/graphicsitems/qdeclarativetextinput.cpp
src/declarative/graphicsitems/qdeclarativetextinput_p.h
tests/auto/declarative/qdeclarativeanchors/tst_qdeclarativeanchors.cpp