Logo Search packages:      
Sourcecode: qsource-highlight version File versions  Download package

bool CustomHelpForm::setHtmlHelpFileDir ( const QString &  path  ) 

the path of the index.html help file

whether the help file can be open (already shows a warning message).

Definition at line 26 of file customhelpform.cpp.

    QFile file(path + "/index.html");
    if (!file.open(QFile::ReadOnly | QFile::Text)) {
        QMessageBox::warning(this, tr("QSource-Highlight"),
                              tr("Cannot open help file %1:\n%2.")
                              .arg(path + "/index.html")
        return false;

    QTextStream in(&file);
    ui->webView->setHtml(in.readAll(), path + "/");
    return true;

Generated by  Doxygen 1.6.0   Back to index