update qt to 6.2.1
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
|
import textwrap
|
||||||
|
|
||||||
from PyQt6.QtCore import Qt
|
from PyQt6.QtCore import Qt
|
||||||
from PyQt6.QtGui import QFont, QPixmap
|
from PyQt6.QtGui import QFont, QPixmap
|
||||||
from PyQt6.QtWidgets import *
|
from PyQt6.QtWidgets import *
|
||||||
|
|
||||||
|
from label import Label
|
||||||
|
|
||||||
|
|
||||||
class AboutDialog(QDialog):
|
class AboutDialog(QDialog):
|
||||||
"""Dialog for showing info about RavenLog"""
|
"""Dialog for showing info about RavenLog"""
|
||||||
@@ -37,26 +41,19 @@ class AboutDialog(QDialog):
|
|||||||
def _about(self) -> QWidget:
|
def _about(self) -> QWidget:
|
||||||
result = QWidget()
|
result = QWidget()
|
||||||
result.layout = QVBoxLayout(result)
|
result.layout = QVBoxLayout(result)
|
||||||
|
label = Label(self.tr(textwrap.dedent("""
|
||||||
download_url_lbl = QLabel(result)
|
Log file viewer<br>
|
||||||
download_url_lbl.setMouseTracking(True)
|
(c) 2021 Open Text Corporation<br>
|
||||||
download_url_lbl.setAlignment(Qt.AlignmentFlag.AlignLeft)
|
<a href="https://www.opentext.com/">License: to be decided</a>""")))
|
||||||
download_url_lbl.setTextInteractionFlags(Qt.TextInteractionFlag.LinksAccessibleByMouse)
|
result.layout.addWidget(label)
|
||||||
download_url_lbl.setOpenExternalLinks(True)
|
|
||||||
download_url_lbl.setText('<a href=%s>%s</a>' %
|
|
||||||
('https://www.opentext.com/',
|
|
||||||
self.tr("License: GNU Lesser General Public License v3")))
|
|
||||||
result.layout.addWidget(QLabel(self.tr("Log file viewer")))
|
|
||||||
result.layout.addWidget(QLabel(self.tr("(c) 2021 Open Text Corporation")))
|
|
||||||
result.layout.addWidget(QLabel(self.tr("Log file viewer")))
|
|
||||||
result.layout.addWidget(download_url_lbl)
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def _license(self) -> QWidget:
|
def _license(self) -> QWidget:
|
||||||
result = QWidget()
|
result = QWidget()
|
||||||
result.layout = QVBoxLayout(result)
|
result.layout = QVBoxLayout(result)
|
||||||
|
result.layout.addWidget(Label(self.tr(textwrap.dedent("""
|
||||||
result.layout.addWidget(QLabel(self.tr("* Qt 6.2.0 (LGPLv3)")))
|
<ul>
|
||||||
result.layout.addWidget(QLabel(self.tr("* watchdog 2.16 (Apache)")))
|
<li>PyQt6 6.2.1 (GPL v3) - <a href="https://code.qt.io/cgit/qt/qtbase.git/">https://code.qt.io/cgit/qt/qtbase.git/</a></li>
|
||||||
|
<li>watchdog 2.16 (Apache 2.0)</li>
|
||||||
|
</ul>"""))))
|
||||||
return result
|
return result
|
||||||
|
|||||||
10
label.py
Normal file
10
label.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
from PyQt6.QtWidgets import QLabel
|
||||||
|
from PyQt6.QtCore import Qt
|
||||||
|
|
||||||
|
|
||||||
|
class Label(QLabel):
|
||||||
|
def __init__(self, text: str):
|
||||||
|
super(Label, self).__init__(text)
|
||||||
|
self.setTextInteractionFlags(Qt.TextInteractionFlag.TextBrowserInteraction)
|
||||||
|
self.setTextInteractionFlags(Qt.TextInteractionFlag.LinksAccessibleByMouse)
|
||||||
|
self.setOpenExternalLinks(True)
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
PyQt6==6.2.0
|
PyQt6==6.2.1
|
||||||
PyQt6-Qt6==6.2.0
|
PyQt6-Qt6==6.2.1
|
||||||
PyQt6-sip==13.1.0
|
PyQt6-sip==13.1.0
|
||||||
six==1.16.0
|
six==1.16.0
|
||||||
urllib3==1.26.7
|
urllib3==1.26.7
|
||||||
|
|||||||
Reference in New Issue
Block a user