diff options
author | Jochen Becher <jochen_becher@gmx.de> | 2017-08-02 09:44:21 +0200 |
---|---|---|
committer | Jochen Becher <jochen_becher@gmx.de> | 2017-11-20 07:29:46 +0000 |
commit | 56be6cc2c8b4558b18ff06c1b36a557e14ee3228 (patch) | |
tree | c958e84efa0d9276e2e6ac25402dac51839d2960 /share/qtcreator/modeleditor | |
parent | 75b77fea33eb728f0ea0653ed9658fe95a7fbdae (diff) |
ModelEditor: Improve custom items
The default name for a new custom item can be set. The display of any
text of a custom icon can be suppressed (e.g. start element in activity
diagrams).
Change-Id: Iaaefda3a6795e0b2a63d96fd001948d302906b7a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'share/qtcreator/modeleditor')
-rw-r--r-- | share/qtcreator/modeleditor/standard.def | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/share/qtcreator/modeleditor/standard.def b/share/qtcreator/modeleditor/standard.def index 662bee8e48..d2d9210a99 100644 --- a/share/qtcreator/modeleditor/standard.def +++ b/share/qtcreator/modeleditor/standard.def @@ -15,6 +15,7 @@ // display: <default display of element. // One of: none, label, decoration, icon, smart. // Default is smart.> +// name: <Name of new element. Defaults to "New <Toolbar entry title>".> // width: <width of icon in pixels. The width defines the width of the icon as decoration.> // height: <height of icon in pixels. The height defines the height of the icon as decoration.> // minwidth: <minimum width of custom icon in pixels.> @@ -22,9 +23,9 @@ // lockSize: <lock resizing. // One of: none, width, height, size, ratio. // Default is none.> -// textAlignment: <alignment of text. -// One of: top, center, below. -// Defaults to center.> +// textAlignment: <alignment of text (stereotype label, name and context). +// One of: top, center, below, none. +// Defaults to below. None means no text will be displayed> // baseColor: <color #rrggbb> // Shape { // Line { x1: <x1>; y1: <y1>; x2:<x2>; y2: <y2> } @@ -345,6 +346,8 @@ Icon { elements: item stereotype: 'start' display: icon + name: "" + textAlignment: none width: 20 height: 20 lockSize: ratio @@ -391,6 +394,8 @@ Icon { elements: item stereotype: 'horizontalbar' display: icon + name: "" + textAlignment: none width: 20 height: 5 minWidth: 20 @@ -408,6 +413,8 @@ Icon { elements: item stereotype: 'verticalbar' display: icon + name: "" + textAlignment: none width: 5 height: 20 minWidth: 5 @@ -424,6 +431,8 @@ Icon { elements: item stereotype: 'termination' display: icon + name: "" + textAlignment: none width: 20 height: 20 lockSize: ratio |