| 1127 | } |
| 1128 | |
| 1129 | void Viewer::updateInformation() |
| 1130 | { |
| 1131 | if (render->hasLoadedComic()) { |
| 1132 | QString pagesInformation; |
| 1133 | if (continuousScroll && continuousViewModel->numPages() > 0) { |
| 1134 | pagesInformation = QString::number(continuousViewModel->readingProgressPage() + 1) + "/" + QString::number(continuousViewModel->numPages()); |
| 1135 | } else { |
| 1136 | pagesInformation = render->getCurrentPagesInformation(); |
| 1137 | } |
| 1138 | |
| 1139 | auto displayTime = Configuration::getConfiguration().getShowTimeInInformation(); |
| 1140 | if (displayTime) { |
| 1141 | informationLabel->setText(pagesInformation + " - " + QTime::currentTime().toString("HH:mm")); |
| 1142 | } else { |
| 1143 | informationLabel->setText(pagesInformation); |
| 1144 | } |
| 1145 | |
| 1146 | informationLabel->adjustSize(); |
| 1147 | informationLabel->update(); // TODO it shouldn't be neccesary |
| 1148 | informationLabel->updatePosition(); |
| 1149 | } |
| 1150 | } |
| 1151 | |
| 1152 | void Viewer::goToFlowSwitch() |
| 1153 | { |
nothing calls this directly
no test coverage detected