Changeset View
Changeset View
Standalone View
Standalone View
app/fullscreencontent.cpp
Show First 20 Lines • Show All 214 Lines • ▼ Show 20 Line(s) | 214 | { | |||
---|---|---|---|---|---|
215 | if (url.isEmpty()) { | 215 | if (url.isEmpty()) { | ||
216 | mCurrentDocument = Document::Ptr(); | 216 | mCurrentDocument = Document::Ptr(); | ||
217 | } else { | 217 | } else { | ||
218 | mCurrentDocument = DocumentFactory::instance()->load(url); | 218 | mCurrentDocument = DocumentFactory::instance()->load(url); | ||
219 | connect(mCurrentDocument.data(), &Document::metaInfoUpdated, | 219 | connect(mCurrentDocument.data(), &Document::metaInfoUpdated, | ||
220 | this, &FullScreenContent::updateCurrentUrlWidgets); | 220 | this, &FullScreenContent::updateCurrentUrlWidgets); | ||
221 | } | 221 | } | ||
222 | updateCurrentUrlWidgets(); | 222 | updateCurrentUrlWidgets(); | ||
223 | 223 | updateDocumentCountLabel(); | |||
224 | // Give the thumbnail view time to update its "current index" | | |||
225 | QTimer::singleShot(0, this, &FullScreenContent::updateDocumentCountLabel); | | |||
226 | } | 224 | } | ||
227 | 225 | | |||
228 | void FullScreenContent::updateInformationLabel() | 226 | void FullScreenContent::updateInformationLabel() | ||
229 | { | 227 | { | ||
230 | if (!mCurrentDocument) { | 228 | if (!mCurrentDocument) { | ||
231 | return; | 229 | return; | ||
232 | } | 230 | } | ||
233 | 231 | | |||
▲ Show 20 Lines • Show All 259 Lines • ▼ Show 20 Line(s) | 429 | { | |||
493 | menu.exec(pos); | 491 | menu.exec(pos); | ||
494 | } | 492 | } | ||
495 | 493 | | |||
496 | void FullScreenContent::setFullScreenMode(bool fullScreenMode) | 494 | void FullScreenContent::setFullScreenMode(bool fullScreenMode) | ||
497 | { | 495 | { | ||
498 | Q_UNUSED(fullScreenMode); | 496 | Q_UNUSED(fullScreenMode); | ||
499 | updateContainerAppearance(); | 497 | updateContainerAppearance(); | ||
500 | setupThumbnailBarStyleSheet(); | 498 | setupThumbnailBarStyleSheet(); | ||
499 | updateDocumentCountLabel(); | ||||
501 | } | 500 | } | ||
502 | 501 | | |||
503 | void FullScreenContent::setDistractionFreeMode(bool distractionFreeMode) | 502 | void FullScreenContent::setDistractionFreeMode(bool distractionFreeMode) | ||
504 | { | 503 | { | ||
505 | mAutoHideContainer->setEdgeTriggerEnabled(!distractionFreeMode); | 504 | mAutoHideContainer->setEdgeTriggerEnabled(!distractionFreeMode); | ||
506 | } | 505 | } | ||
507 | 506 | | |||
508 | void FullScreenContent::slotImageMetaInfoDialogClosed() | 507 | void FullScreenContent::slotImageMetaInfoDialogClosed() | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |