From 62b225e22c99d5917d19a54c54207769087dd797 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Thu, 21 Feb 2019 21:36:37 -0500 Subject: [PATCH] Fullscreen: Add scene title to top panel --- manuskript/ui/editors/fullScreenEditor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manuskript/ui/editors/fullScreenEditor.py b/manuskript/ui/editors/fullScreenEditor.py index 81903c14..10a7ea5c 100644 --- a/manuskript/ui/editors/fullScreenEditor.py +++ b/manuskript/ui/editors/fullScreenEditor.py @@ -65,6 +65,11 @@ class fullScreenEditor(QWidget): self.btnSpellCheck = None self.topPanel.layout().addStretch(1) + item = self._index.internalPointer() + title = item.data(Outline.title) + self.lblTitle = QLabel(title, self) + self.topPanel.layout().addWidget(self.lblTitle) + self.topPanel.layout().addStretch(1) # Close self.btnClose = QPushButton(self) @@ -120,6 +125,7 @@ class fullScreenEditor(QWidget): if self.btnSpellCheck: self.topPanel.addDisplay(self.tr("Spellcheck"), 'top-spellcheck', (self.btnSpellCheck, )) + self.topPanel.addDisplay(self.tr("Title"), 'top-title', (self.lblTitle, )) self.bottomPanel.addDisplay(self.tr("Theme selector"), 'bottom-theme', (self.lstThemes, themeLabel)) self.bottomPanel.addDisplay(self.tr("Word count"), 'bottom-wc', (self.lblWC, )) self.bottomPanel.addDisplay(self.tr("Progress"), 'bottom-progress', (self.lblProgress, ))