This commit is contained in:
恍兮惚兮 2024-07-30 01:29:56 +08:00
parent b17386dd8f
commit cab8b61616
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ from gui.usefulwidget import getQMessageBox
from traceback import print_exc
class Textbrowser(QLabel):
class Textbrowser(QFrame):
contentsChanged = pyqtSignal(QSize)
def resizeEvent(self, event: QResizeEvent):

View File

@ -604,7 +604,7 @@ class QUnFrameWindow(resizableframeless):
self.setWindowTitle("LunaTranslator")
self.initvalues()
self.initsignals()
self._TitleLabel = QLabel(self)
self._TitleLabel = QFrame(self)
self._TitleLabel.setObjectName("_TitleLabel")
self._TitleLabel.setMouseTracking(True)
self.addbuttons()
@ -698,7 +698,7 @@ class QUnFrameWindow(resizableframeless):
)
)
self._TitleLabel.setStyleSheet(
"QLabel#_TitleLabel{border-width: 0;%s;background-color: %s}"
"#_TitleLabel{border-width: 0;%s;background-color: %s}"
% (
bottomr,
str2rgba(