From 346edc996ed03a75b57457c407caf7a30431f877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Thu, 30 May 2024 21:04:22 +0800 Subject: [PATCH] issues/777 --- LunaTranslator/LunaTranslator/gui/rangeselect.py | 8 ++++++-- plugins/CMakeLists.txt | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/rangeselect.py b/LunaTranslator/LunaTranslator/gui/rangeselect.py index b454cac0..8c358621 100644 --- a/LunaTranslator/LunaTranslator/gui/rangeselect.py +++ b/LunaTranslator/LunaTranslator/gui/rangeselect.py @@ -17,7 +17,9 @@ class rangeadjust(Mainw): self._isTracking = False self._rect = None self.setWindowFlags( - Qt.WindowType.WindowStaysOnTopHint | Qt.WindowType.FramelessWindowHint + Qt.WindowType.WindowStaysOnTopHint + | Qt.WindowType.FramelessWindowHint + | Qt.WindowType.Tool ) self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground) self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) @@ -117,7 +119,9 @@ class rangeselct(QMainWindow): super(rangeselct, self).__init__(parent) self.setWindowFlags( - Qt.WindowType.FramelessWindowHint | Qt.WindowType.WindowStaysOnTopHint + Qt.WindowType.FramelessWindowHint + | Qt.WindowType.WindowStaysOnTopHint + | Qt.WindowType.Tool ) self.rectlabel = QLabel(self) # self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index acd8be6b..7653a531 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 3) set(VERSION_MINOR 0) -set(VERSION_PATCH 3) +set(VERSION_PATCH 4) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)