Add some tests for NotebookTab (#5070)

* EmptyApplication: Add asserts to rest of getters (except for getSeventvAPI)

* Theme: make getTheme call getIApp()->getThemes() instead

this allows it to be used in tests
realistically this should be deprecated & users of it should just call
getIApp()->getThemes() directly

* Use getIApp() instead of getApp() in a few places
This commit is contained in:
pajlada
2024-01-06 11:42:45 +01:00
committed by GitHub
parent 77eb9cc1e9
commit 99b537ffd9
8 changed files with 193 additions and 13 deletions
+1 -1
View File
@@ -476,7 +476,7 @@ void Theme::normalizeColor(QColor &color) const
Theme *getTheme()
{
return getApp()->themes;
return getIApp()->getThemes();
}
} // namespace chatterino