Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/KisNodeView.h
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 54 | public: | |||
---|---|---|---|---|---|
97 | DisplayMode displayMode() const; | 97 | DisplayMode displayMode() const; | ||
98 | 98 | | |||
99 | /** | 99 | /** | ||
100 | * Add toggle actions for all the properties associated with the | 100 | * Add toggle actions for all the properties associated with the | ||
101 | * current document section associated with the model index to the | 101 | * current document section associated with the model index to the | ||
102 | * specified menu. | 102 | * specified menu. | ||
103 | * | 103 | * | ||
104 | * For instance, if a document section can be locked and visible, | 104 | * For instance, if a document section can be locked and visible, | ||
105 | * the menu will be expanded with locked and visilbe toggle | 105 | * the menu will be expanded with locked and visible toggle | ||
106 | * actions. | 106 | * actions. | ||
107 | * | 107 | * | ||
108 | * For instance | 108 | * For instance | ||
109 | @code | 109 | @code | ||
110 | KisNodeView * nodeView; | 110 | KisNodeView * nodeView; | ||
111 | QModelIndex index = getCurrentNode(); | 111 | QModelIndex index = getCurrentNode(); | ||
112 | QMenu menu; | 112 | QMenu menu; | ||
113 | if (index.isValid()) { | 113 | if (index.isValid()) { | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |