File tree 2 files changed +16
-22
lines changed
2 files changed +16
-22
lines changed Original file line number Diff line number Diff line change 19
19
20
20
#include < cassert>
21
21
#include < iostream>
22
- #include < qstring.h>
23
- #include < qapplication.h>
24
- #include < qmessagebox.h>
25
- #include < qfileinfo.h>
26
- #include < q3textbrowser.h>
27
- #include < sqlite3.h>
22
+
23
+ #include < QString>
24
+ #include < QApplication>
25
+ #include < QMessageBox>
26
+ #include < QFileInfo>
28
27
#include < QTextCodec>
29
28
#include < QTextStream>
30
29
#include < QFile>
30
+
31
+ #include < sqlite3.h>
32
+
31
33
#include " qgshelpviewer.h"
34
+
32
35
QgsHelpViewer::QgsHelpViewer (const QString &contextId, QWidget *parent,
33
36
Qt::WFlags fl)
34
37
: QDialog(parent, fl)
@@ -122,7 +125,7 @@ void QgsHelpViewer::loadContext(const QString &contextId)
122
125
file.close ();
123
126
124
127
// Set the browser text to the help contents
125
- txtBrowser->setText (helpContents);
128
+ txtBrowser->setHtml (helpContents);
126
129
setCaption (tr (" Quantum GIS Help" ));
127
130
128
131
}
Original file line number Diff line number Diff line change 1
1
<ui version =" 4.0" >
2
- <author ></author >
3
- <comment ></comment >
4
- <exportmacro ></exportmacro >
5
2
<class >QgsHelpViewerBase</class >
6
3
<widget class =" QDialog" name =" QgsHelpViewerBase" >
7
4
<property name =" geometry" >
23
20
</property >
24
21
<layout class =" QGridLayout" >
25
22
<property name =" margin" >
26
- <number >6 </number >
23
+ <number >9 </number >
27
24
</property >
28
25
<property name =" spacing" >
29
26
<number >6</number >
30
27
</property >
31
28
<item row =" 0" column =" 0" >
32
- <widget class =" Q3TextBrowser" name =" txtBrowser" />
29
+ <widget class =" QTextBrowser" name =" txtBrowser" >
30
+ <property name =" acceptDrops" >
31
+ <bool >false</bool >
32
+ </property >
33
+ </widget >
33
34
</item >
34
35
<item row =" 1" column =" 0" >
35
36
<layout class =" QHBoxLayout" >
73
74
</layout >
74
75
</widget >
75
76
<layoutdefault spacing =" 6" margin =" 11" />
76
- <pixmapfunction ></pixmapfunction >
77
- <customwidgets >
78
- <customwidget >
79
- <class >Q3TextBrowser</class >
80
- <extends >QWidget</extends >
81
- <header >q3textbrowser.h</header >
82
- <container >1</container >
83
- <pixmap ></pixmap >
84
- </customwidget >
85
- </customwidgets >
86
77
<resources />
87
78
<connections >
88
79
<connection >
You can’t perform that action at this time.
0 commit comments