MCPcopy Create free account
hub / github.com/YACReader/yacreader / applyTheme

Method applyTheme

custom_widgets/yacreader_search_line_edit.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void YACReaderSearchLineEdit::applyTheme(const Theme &theme)
39{
40 const auto &searchTheme = theme.searchLineEdit;
41
42 setStyleSheet(searchTheme.lineEditQSS.arg(paddingLeft).arg(paddingRight));
43 searchLabel->setStyleSheet(searchTheme.searchLabelQSS);
44 clearButton->setStyleSheet(searchTheme.clearButtonQSS);
45
46 searchLabel->setPixmap(searchTheme.searchIcon);
47 clearButton->setIcon(QIcon(searchTheme.clearIcon));
48}
49
50void YACReaderSearchLineEdit::clearText()
51{

Callers

nothing calls this directly

Calls 3

QIconClass · 0.85
setPixmapMethod · 0.80
setIconMethod · 0.80

Tested by

no test coverage detected