forked from qt-creator/qt-creator
TextBrowserHelpViewer: Don't use magic number.
Change-Id: I0902ed925f0dc4c5770fee0f02159cfc31e67b02 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
@@ -315,7 +315,7 @@ TextBrowserHelpWidget::TextBrowserHelpWidget(TextBrowserHelpViewer *parent)
|
||||
|
||||
QVariant TextBrowserHelpWidget::loadResource(int type, const QUrl &name)
|
||||
{
|
||||
if (type < 4)
|
||||
if (type < QTextDocument::UserResource)
|
||||
return LocalHelpManager::helpData(name).data;
|
||||
return QByteArray();
|
||||
}
|
||||
|
Reference in New Issue
Block a user