mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-17 10:24:34 +12:00
Fixes #307: Overlay status bar prevents access to add/delete world item icons when displaying a message
This commit is contained in:
parent
30a49a44d4
commit
4a9dc00381
|
@ -30,6 +30,7 @@ from manuskript.ui.tools.frequencyAnalyzer import frequencyAnalyzer
|
||||||
from manuskript.ui.views.outlineDelegates import outlineCharacterDelegate
|
from manuskript.ui.views.outlineDelegates import outlineCharacterDelegate
|
||||||
from manuskript.ui.views.plotDelegate import plotDelegate
|
from manuskript.ui.views.plotDelegate import plotDelegate
|
||||||
from manuskript.ui.views.MDEditView import MDEditView
|
from manuskript.ui.views.MDEditView import MDEditView
|
||||||
|
from manuskript.ui.statusLabel import statusLabel
|
||||||
|
|
||||||
# Spellcheck support
|
# Spellcheck support
|
||||||
from manuskript.ui.views.textEditView import textEditView
|
from manuskript.ui.views.textEditView import textEditView
|
||||||
|
@ -71,7 +72,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
||||||
|
|
||||||
# UI
|
# UI
|
||||||
self.setupMoreUi()
|
self.setupMoreUi()
|
||||||
self.statusLabel = QLabel(self)
|
self.statusLabel = statusLabel(parent=self)
|
||||||
self.statusLabel.setAutoFillBackground(True)
|
self.statusLabel.setAutoFillBackground(True)
|
||||||
self.statusLabel.hide()
|
self.statusLabel.hide()
|
||||||
|
|
||||||
|
|
13
manuskript/ui/statusLabel.py
Normal file
13
manuskript/ui/statusLabel.py
Normal 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()
|
Loading…
Reference in a new issue