| 49 | return -1; |
| 50 | } |
| 51 | void YACReaderLibraryListWidget::setCurrentIndex(int index) |
| 52 | { |
| 53 | if (index >= 0 && index < librariesList.count()) { |
| 54 | librariesList.at(index)->select(); |
| 55 | currentLibraryIndex = index; |
| 56 | deselectAllBut(index); |
| 57 | emit currentIndexChanged(librariesList.at(currentLibraryIndex)->name); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | int YACReaderLibraryListWidget::currentIndex() |
| 62 | { |