MCPcopy Create free account
hub / github.com/buggins/coolreader / loadCSS

Method loadCSS

cr3qt/src/cr3widget.cpp:679–693  ·  view source on GitHub ↗

load fb2.css file

Source from the content-addressed store, hash-verified

677
678/// load fb2.css file
679bool CR3View::loadCSS( QString fn )
680{
681 lString16 filename( qt2cr(fn) );
682 lString8 css;
683 if ( LVLoadStylesheetFile( filename, css ) ) {
684 if ( !css.empty() ) {
685 QFileInfo f( fn );
686 CRLog::info( "Using style sheet from %s", fn.toUtf8().constData() );
687 _cssDir = f.absolutePath() + "/";
688 _docview->setStyleSheet( css );
689 return true;
690 }
691 }
692 return false;
693}
694
695/// load settings from file
696bool CR3View::loadSettings( QString fn )

Callers 1

MainWindowMethod · 0.45

Calls 4

qt2crFunction · 0.85
LVLoadStylesheetFileFunction · 0.85
emptyMethod · 0.45
setStyleSheetMethod · 0.45

Tested by

no test coverage detected