quiet the compiler
This commit is contained in:
parent
b9fa4cca32
commit
61dae1cad0
@ -212,18 +212,17 @@ void ToolTipContent::registerResources(QTextDocument *document) const
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
const ToolTipResource &r = it.value();
|
||||
QTextDocument::ResourceType t;
|
||||
QTextDocument::ResourceType t(QTextDocument::ImageResource);
|
||||
|
||||
switch (r.type) {
|
||||
case ImageResource:
|
||||
t = QTextDocument::ImageResource;
|
||||
break;
|
||||
case HtmlResource:
|
||||
t = QTextDocument::HtmlResource;
|
||||
break;
|
||||
case CssResource:
|
||||
t = QTextDocument::StyleSheetResource;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
document->addResource(t, it.key(), r.data);
|
||||
|
Loading…
Reference in New Issue
Block a user