diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-07-17 14:21:55 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-07-29 11:10:34 +0000 |
commit | a98e3ba6238788e5b94dfda7d63a9df380b905af (patch) | |
tree | 9e6352d74a1f03ebbd7e96c3e2ccde5e8945a461 /examples | |
parent | 08a732b69e951b8f1ca53d2e047c432407f42d67 (diff) |
Qt Designer: Add customizable property tooltips.
- Introduce tag propertytooltip to property specifications
in the ui XML snippet returned by
QDesignerCustomWidgetInterface::domXml()
- Pass the text to the property editor and set as description tooltip
on the property.
- As an added benefit, show the type in the normal tooltip.
- Demonstrate using TicTacToe example.
[ChangeLog][Qt Designer] Added customizable property tooltips.
Task-number: QTBUG-45442
Change-Id: I371bbbb3a6f2bc0f433193b5eb45658211ca67de
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/designer/taskmenuextension/tictactoeplugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/designer/taskmenuextension/tictactoeplugin.cpp b/examples/designer/taskmenuextension/tictactoeplugin.cpp index 770a44a24..6e0c7b02d 100644 --- a/examples/designer/taskmenuextension/tictactoeplugin.cpp +++ b/examples/designer/taskmenuextension/tictactoeplugin.cpp @@ -127,6 +127,7 @@ QString TicTacToePlugin::domXml() const <customwidget>\ <class>TicTacToe</class>\ <propertyspecifications>\ + <tooltip name=\"state\">Tic Tac Toe state</tooltip>\ <stringpropertyspecification name=\"state\" notr=\"true\" type=\"singleline\"/>\ </propertyspecifications>\ </customwidget>\ |