diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-10-14 19:29:24 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-10-15 09:03:44 +0000 |
commit | 361a4c1994380b5eaf885407aa2137db2608c6e6 (patch) | |
tree | 65b303666f8b4a4830c20a44919355633a9c7949 /src/tools/uic/ui4.h | |
parent | 61be975574bff3e8f34d55df5131284a0134f7b4 (diff) |
uic: updates from running generate_ui
(as of qttools:9ed1cfb27d7354cbc1020563569b8f65a3311303)
Change-Id: I2f539d2a20428cf167c04ea9f5881b1f5d58beb0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/tools/uic/ui4.h')
-rw-r--r-- | src/tools/uic/ui4.h | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/src/tools/uic/ui4.h b/src/tools/uic/ui4.h index 60685c9111..1e5bcbf0ab 100644 --- a/src/tools/uic/ui4.h +++ b/src/tools/uic/ui4.h @@ -144,6 +144,7 @@ class DomWidgetData; class DomDesignerData; class DomSlots; class DomPropertySpecifications; +class DomPropertyToolTip; class DomStringPropertySpecification; /******************************************************************************* @@ -3541,6 +3542,9 @@ public: // attribute accessors // child element accessors + inline QList<DomPropertyToolTip*> elementTooltip() const { return m_tooltip; } + void setElementTooltip(const QList<DomPropertyToolTip*>& a); + inline QList<DomStringPropertySpecification*> elementStringpropertyspecification() const { return m_stringpropertyspecification; } void setElementStringpropertyspecification(const QList<DomStringPropertySpecification*>& a); @@ -3551,15 +3555,49 @@ private: // attribute data // child element data uint m_children; + QList<DomPropertyToolTip*> m_tooltip; QList<DomStringPropertySpecification*> m_stringpropertyspecification; enum Child { - Stringpropertyspecification = 1 + Tooltip = 1, + Stringpropertyspecification = 2 }; DomPropertySpecifications(const DomPropertySpecifications &other); void operator = (const DomPropertySpecifications&other); }; +class QDESIGNER_UILIB_EXPORT DomPropertyToolTip { +public: + DomPropertyToolTip(); + ~DomPropertyToolTip(); + + void read(QXmlStreamReader &reader); + void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const; + inline QString text() const { return m_text; } + inline void setText(const QString &s) { m_text = s; } + + // attribute accessors + inline bool hasAttributeName() const { return m_has_attr_name; } + inline QString attributeName() const { return m_attr_name; } + inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; } + inline void clearAttributeName() { m_has_attr_name = false; } + + // child element accessors +private: + QString m_text; + void clear(bool clear_all = true); + + // attribute data + QString m_attr_name; + bool m_has_attr_name; + + // child element data + uint m_children; + + DomPropertyToolTip(const DomPropertyToolTip &other); + void operator = (const DomPropertyToolTip&other); +}; + class QDESIGNER_UILIB_EXPORT DomStringPropertySpecification { public: DomStringPropertySpecification(); |