MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / getEditorCss

Method getEditorCss

global.cpp:886–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884
885
886QString Global::getEditorCss() {
887 QString css=fileManager.getQssDirPath("")+"editor.css";
888 if (colorList.contains("editorCss")) {
889 css = fileManager.getQssDirPathUser("")+colorList["editorCss"].trimmed();
890 if (QFile(css).exists())
891 return css;
892 css = fileManager.getQssDirPath("")+colorList["editorCss"].trimmed();
893 if (QFile(css).exists())
894 return css;
895 }
896 return css;
897}
898
899
900// Get a QIcon in an icon theme

Callers 1

setEditorStyleMethod · 0.80

Calls 3

getQssDirPathMethod · 0.80
getQssDirPathUserMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected