summaryrefslogtreecommitdiffstats
path: root/src/ftvhelp.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-02-11 18:24:41 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-02-11 18:24:41 (GMT)
commit863353b89b228b87789e6d6c9257605acd796fff (patch)
treef98b164f024c28a0d6378b68142ed268239dba97 /src/ftvhelp.cpp
parent1b90a1cf58b6b94d00e28d8212828956e8f9d177 (diff)
downloadDoxygen-863353b89b228b87789e6d6c9257605acd796fff.zip
Doxygen-863353b89b228b87789e6d6c9257605acd796fff.tar.gz
Doxygen-863353b89b228b87789e6d6c9257605acd796fff.tar.bz2
Release-1.2.5-20010211
Diffstat (limited to 'src/ftvhelp.cpp')
-rw-r--r--src/ftvhelp.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp
index 71a053b..5936894 100644
--- a/src/ftvhelp.cpp
+++ b/src/ftvhelp.cpp
@@ -12,6 +12,7 @@
#include <stdlib.h>
#include <qlist.h>
#include <qdict.h>
+#include <qfileinfo.h>
#include "ftvhelp.h"
#include "config.h"
@@ -302,7 +303,21 @@ static void generateFolderTreeViewData()
{
QTextStream t(&f);
t << "<html><head>" << endl;
- t << "<link rel=\"stylesheet\" href=\"doxygen.css\">" << endl;
+ t << "<link rel=\"stylesheet\" href=\"";
+ if (Config::htmlStyleSheet.isEmpty())
+ {
+ t << "doxygen.css";
+ }
+ else
+ {
+ QFileInfo cssfi(Config::htmlStyleSheet);
+ if (!cssfi.exists())
+ {
+ err("Error: user specified HTML style sheet file does not exist!\n");
+ }
+ t << cssfi.fileName();
+ }
+ t << "\">" << endl;
t << "<script src=\"treeview.js\"></script>" << endl;
t << "<script src=\"tree.js\"></script>" << endl;
t << "<script>" << endl;