quiet the compiler

This commit is contained in:
Aaron Seigo 2011-05-31 00:03:12 +02:00
parent b9fa4cca32
commit 61dae1cad0

View File

@ -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);