qtoolbutton menus need to reimplement QMenu so it can provide a sizeHint.
Otherwise the menu might end up outside the screen.

BUG:329718
Fix compilation on Qt 4.7
Rename "Common" paintop option category to "General"
Rename "Custom" brush tip into "Stamp" brush tip
Change "Invert Texture" into "Invert Pattern" to comply new concept guidelines
Remove word "Stroke" from all the translatable strings
Remove word "Toggle" from the name of action shortcuts

This is just a "mode" of the tool.
Remove term "Node" from the user visible strings
Remove "name" field of canvas decorations

It was not used anywhere and only puzzled translators, because
they couldn't find it anywhere.
Add dots to File Layer and Convert to Filter Mask actions.

They show dialogs so it is mandatory
Rename "Generator Layer" into "Fill Layer"

Also change its icon into the Paint Bucket tool icon
Rename painting tools according to the suggested guideline
Rename selection tools according to the suggested guidelines
Implemented type-safe translations for undo actions

See documentation to a KUndo2MagicString class.

Now KUndo2Command cannot accept a usual string as the operation text().
The supplied text must pass through the kundo2_i18n() function, which
tells the developer to use (qtundo-format) which is mandatory for all the
undo-related strings (because in some languages they should be shown in
different cases in undo/redo action and in undo history, and the
translators should use Magic Split for them).
Update Messages.sh to extract messages from kundo2_i18n*() calls

When extracting from kundo2_i18n*() calls, the scripts Messages.sh
also prepend "(qtundo-format)" to context strings (msgctxt) in the
resulting translation template (.pot).
Fix trailing whitespace
kundo2_i18n and kundo2_i18np should also add the special context for strings

Thanks Alexander Potashev for pointing this out!
Fix addition of msgctxt "(qtundo-format)" to all messages coming from kundo_i18n*()
calligra_xgettext.sh: check that .pot files are not empty
Remove commented out old code