OSDN Git Service

Fixes: - Html used for "No Documentation found" was invalid
authorcon <qtc-committer@nokia.com>
Wed, 11 Feb 2009 17:30:51 +0000 (18:30 +0100)
committercon <qtc-committer@nokia.com>
Wed, 11 Feb 2009 17:35:29 +0000 (18:35 +0100)
RevBy:    - dt

src/plugins/help/helpplugin.cpp

index 4d48afd..8dfb429 100644 (file)
@@ -570,8 +570,8 @@ void HelpPlugin::activateContext()
             }
             
             if (viewer) {
-                viewer->setHtml(tr("<title>No Documentation</title><br><br>"
-                    "<center><b>%1</b><br><br>No documentation available.").
+                viewer->setHtml(tr("<html><head><title>No Documentation</title></head><body><br/>"
+                    "<center><b>%1</b><br/>No documentation available.</center></body></html>").
                     arg(id));
                 viewer->setSource(QUrl());
                 //activateIndex();
@@ -589,8 +589,8 @@ void HelpPlugin::activateContext()
 
         if (viewer) {
             viewer->setSource(QUrl());
-            viewer->setHtml("<title>No Documentation</title><br><br><center>No"
-                " documentation available.");
+            viewer->setHtml("<html><head><title>No Documentation</title></head><body><br/><br/><center>No"
+                " documentation available.</center></body></html>");
             //activateIndex();
         }
     }