| 150 | } |
| 151 | |
| 152 | void 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 | |
| 167 | void YACReaderLibraryItemWidget::setName(const QString &name) |
| 168 | { |
no test coverage detected