summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJason Barron <jbarron@trolltech.com>2009-09-20 12:55:36 +0200
committerJason Barron <jbarron@trolltech.com>2009-09-21 10:07:50 +0200
commit7bb16c92a29d316b0dc385e95d99d3edfd1b4196 (patch)
tree462d020724be4048a6cc6738d55f6dd34db2f445 /tests/auto
parentf01dd45eb52e6a9d76fbd2645466cc52319715a0 (diff)
Simplify the soft key roles of QAction.
Previously there were many options here that were inherited from the Qtopia implementation. It was not clear to developers which value they actually should use. A good example was the 'Next' value. In a typical wizard application, next would be on the right and 'Previous' would be on the left. However, it is also common to have 'Next' on the left and have 'Cancel' on the right. Basically what people really wanted was a way to explicitly set the right and left soft keys, but since this relies on form factor and is wrong if the screen is rotated, we choose positive and negative actions as the values for these such that they still make sense when the screen is rotated. Also this helps people who don't know if a particular action should be on the left or right, but they *do* know if their action has destructive characterisitics (negative). As a convenience for widgets in Qt that use softkeys, we create a standard softkey enumeration. That maps the actions to the correct role and has default text. Reviewed-by: Alessandro Portale
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions