load fb2.css file
| 677 | |
| 678 | /// load fb2.css file |
| 679 | bool 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 |
| 696 | bool CR3View::loadSettings( QString fn ) |
no test coverage detected