From bff309a0770aa37dfc9fe9cc6643829a80529003 Mon Sep 17 00:00:00 2001 From: CPD Date: Wed, 5 Mar 2025 15:26:33 +0100 Subject: [PATCH] Add about --- cpdctrl_gui/resources/about.md | 5 +++++ cpdctrl_gui/ui/widgets/about.py | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 cpdctrl_gui/resources/about.md diff --git a/cpdctrl_gui/resources/about.md b/cpdctrl_gui/resources/about.md new file mode 100644 index 0000000..e2efd25 --- /dev/null +++ b/cpdctrl_gui/resources/about.md @@ -0,0 +1,5 @@ +## About + +- Author: Matthias Quintern +- License: [GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html) +- Source Code: https://git.quintern.xyz/MatthiasQuintern/cpdctrl-gui \ No newline at end of file diff --git a/cpdctrl_gui/ui/widgets/about.py b/cpdctrl_gui/ui/widgets/about.py index c1b3926..eca7262 100644 --- a/cpdctrl_gui/ui/widgets/about.py +++ b/cpdctrl_gui/ui/widgets/about.py @@ -1,4 +1,5 @@ from PyQt6.QtWidgets import QTextBrowser +from PyQt6.QtGui import QDesktopServices from ...resources import get_resource_path @@ -11,3 +12,8 @@ class MarkdownView(QTextBrowser): with open(self.filepath, "r") as file: content = file.read() self.setMarkdown(content) + + # open links with the OS web browser + self.anchorClicked.connect(QDesktopServices.openUrl) + # dont follow links + self.setOpenLinks(False)