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

void QSourceHighlight::writeStyleFile ( QFile *  file ) [private]

Generates the contents for a source-highlight style file starting from the current highlighter formatters.

Parameters:
file

Definition at line 518 of file qsource-highlight.cpp.

                                                 {
    // we retrieve the current formatters of the highlighter
    QList<srchiliteqt::Qt4TextFormatter*> formatters =
            textEdit->getHighlighter()->getQt4TextFormatterMap().values();
    QStringList contents =
            srchiliteqt::Qt4SourceHighlightStyleGenerator::createStyleContents
                (formatters, textEdit->getHighlighter()->getBackgroundColor());
    QTextStream out(file);
    out << contents.join("\n");
}

Generated by  Doxygen 1.6.0   Back to index