Fixes #307: Overlay status bar prevents access to add/delete world item icons when displaying a message

This commit is contained in:
Olivier Keshavjee 2018-01-22 18:19:22 +01:00
parent 30a49a44d4
commit 4a9dc00381
2 changed files with 15 additions and 1 deletions

View file

@ -30,6 +30,7 @@ from manuskript.ui.tools.frequencyAnalyzer import frequencyAnalyzer
from manuskript.ui.views.outlineDelegates import outlineCharacterDelegate
from manuskript.ui.views.plotDelegate import plotDelegate
from manuskript.ui.views.MDEditView import MDEditView
from manuskript.ui.statusLabel import statusLabel
# Spellcheck support
from manuskript.ui.views.textEditView import textEditView
@ -71,7 +72,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
# UI
self.setupMoreUi()
self.statusLabel = QLabel(self)
self.statusLabel = statusLabel(parent=self)
self.statusLabel.setAutoFillBackground(True)
self.statusLabel.hide()

View file

@ -0,0 +1,13 @@
#!/usr/bin/env python
# --!-- coding: utf8 --!--
from PyQt5.QtWidgets import QLabel, QSizePolicy
class statusLabel(QLabel):
def __init__(self, text=None, parent=None):
QLabel.__init__(self, text=text, parent=parent)
self.setMouseTracking(True)
def mouseMoveEvent(self, event):
self.hide()