| 63 | return currentLibraryIndex; |
| 64 | } |
| 65 | void YACReaderLibraryListWidget::removeItem(int index) |
| 66 | { |
| 67 | YACReaderLibraryItemWidget *itemWidget = librariesList.at(index); |
| 68 | this->layout()->removeWidget(itemWidget); |
| 69 | librariesList.removeAt(index); |
| 70 | if (librariesList.count() > 0) { |
| 71 | setCurrentIndex(0); |
| 72 | } |
| 73 | delete itemWidget; |
| 74 | } |
| 75 | |
| 76 | void YACReaderLibraryListWidget::mousePressEvent(QMouseEvent *event) |
| 77 | { |
no outgoing calls
no test coverage detected