ADTF Qt5
Loading...
Searching...
No Matches
xml_text_widget.h
Go to the documentation of this file.
1
7
8/*
9 * This file depends on Qt which is licensed under LGPLv3.
10 * See ADTF_DIR/3rdparty/qt5 and doc/license for detailed information.
11 */
12#pragma once
13
14#include <QString>
15#include <QSyntaxHighlighter>
16#include <QTextBrowser>
17#include <QWidget>
18
19namespace adtf
20{
21namespace ui
22{
23namespace widget
24{
25namespace osborn
26{
27
29class cXmlTextWidget : public QWidget
30{
31 Q_OBJECT
32
33public:
38 cXmlTextWidget(QWidget* pParent = nullptr);
39
41 void Clear();
43 QString XmlText() const;
45 void SetXmlText(const QString& strXML);
46
47private:
48 void UpdateXMLTextBrowser();
49
50private:
51 QString m_strXML;
52 QTextBrowser* m_pXMLTextBrowser = nullptr;
53
54protected:
56 bool event(QEvent* event);
57
58signals:
63};
64
65} // namespace osborn
66
67namespace v0
68{
69
71
72}
73
74using v0::cXmlTextWidget;
75
76} // namespace widget
77} // namespace ui
78} // namespace adtf
cXmlTextWidget(QWidget *pParent=nullptr)
cXmlTextWidget can display XML using a syntax highlighter.
Definition xml_text_widget.h:30
QString XmlText() const
Returns XML as text.
void SetXmlText(const QString &strXML)
Set XML as text.
bool event(QEvent *event)
needed for style updates
cXmlTextWidget(QWidget *pParent=nullptr)
Namespace for all provided widget functionality helper.
Definition filter_model_treeview.h:25
Namespace for the ADTF UI SDK.
Definition adtfui_pkg.h:13
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtfui_pkg.h:13