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

Method select

custom_widgets/yacreader_library_item_widget.cpp:152–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void YACReaderLibraryItemWidget::select()
153{
154 const auto &li = theme.libraryItem;
155 QString styleSheet = QString("color: %1; background-color: %2; font-weight:bold;")
156 .arg(li.selectedTextColor.name())
157 .arg(li.selectedBackgroundColor.name());
158 setStyleSheet(styleSheet);
159
160 options->setHidden(false);
161
162 icon->setPixmap(theme.libraryItem.libraryIconSelected.pixmap(16, 16));
163
164 isSelected = true;
165}
166
167void YACReaderLibraryItemWidget::setName(const QString &name)
168{

Callers 5

addActionsGroupMethod · 0.80
setCurrentIndexMethod · 0.80
selectIndexMethod · 0.80
deselectIndexMethod · 0.80
selectAllMethod · 0.80

Calls 4

setPixmapMethod · 0.80
pixmapMethod · 0.80
QStringClass · 0.50
nameMethod · 0.45

Tested by

no test coverage detected