Changeset View
Changeset View
Standalone View
Standalone View
src/detailinfodlg.cpp
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Line(s) | 154 | { | |||
---|---|---|---|---|---|
158 | 158 | | |||
159 | htmlpart->begin(); | 159 | htmlpart->begin(); | ||
160 | htmlpart->write(htmlcode); | 160 | htmlpart->write(htmlcode); | ||
161 | 161 | | |||
162 | // set the background color of the document to match that of the dialog | 162 | // set the background color of the document to match that of the dialog | ||
163 | DOM::HTMLElement element = htmlpart->htmlDocument().body(); | 163 | DOM::HTMLElement element = htmlpart->htmlDocument().body(); | ||
164 | if (element.tagName() == "body") { | 164 | if (element.tagName() == "body") { | ||
165 | const QColor backgroundColor = palette().background().color(); | 165 | const QColor backgroundColor = palette().background().color(); | ||
166 | ((DOM::HTMLBodyElement)element).setBgColor(backgroundColor.name()); | 166 | (static_cast<DOM::HTMLBodyElement>(element)).setBgColor(backgroundColor.name()); | ||
167 | } | 167 | } | ||
168 | 168 | | |||
169 | htmlpart->end(); | 169 | htmlpart->end(); | ||
170 | } | 170 | } | ||
171 | 171 | | |||
172 | QString DetailedInfoDlg::getHtml(DATATYPE type) | 172 | QString DetailedInfoDlg::getHtml(DATATYPE type) | ||
173 | { | 173 | { | ||
174 | QString html = | 174 | QString html = | ||
▲ Show 20 Lines • Show All 463 Lines • Show Last 20 Lines |