diff options
author | Alexander Potashev <aspotashev@gmail.com> | 2011-05-09 08:35:29 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-05-09 09:07:22 (GMT) |
commit | 213c25ad24e4f3b0a44f82f23d34746cd294f8d6 (patch) | |
tree | 76a721aac6a132189018b2eb3306896fd2e1dfc9 /examples/painting | |
parent | c8812fe6e642520532d65744caefcea790d59de8 (diff) | |
download | Qt-213c25ad24e4f3b0a44f82f23d34746cd294f8d6.zip Qt-213c25ad24e4f3b0a44f82f23d34746cd294f8d6.tar.gz Qt-213c25ad24e4f3b0a44f82f23d34746cd294f8d6.tar.bz2 |
Allow using not only prefixes for undo command text
Functions QUndo{Group,Stack}::create{Undo,Redo}Action() now use action
text templates "Undo %1" and "Redo %1" if no custom prefix was provided.
This makes more flexible translations possible. The surrounding text
(like "Undo" and "Redo") can now be suffixed to the command name as
German and Korean languages require ("%1 rueckgaengig machen" for German).
Also, now the default action text (when no command can be undone) can be
translated differently from the prefix. For example, it can be
translated as "Undo action", not just "Undo".
When a non-empty prefix is passed to QUndo*****::create****Action(),
those functions work as before, and the features described above become
unavailable.
Task-number: QTBUG-14442
Merge-request: 1212
Reviewed-by: ossi
Diffstat (limited to 'examples/painting')
0 files changed, 0 insertions, 0 deletions