Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
92078a15
Commit
92078a15
authored
2 years ago
by
Petter Källström
Committed by
Petter Källström
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updated some links, also added a mouse-over text for links.
parent
dc7d216b
Branches
Branches containing commit
No related tags found
1 merge request
!182
About window
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/GUI/about_window.py
+12
-2
12 additions, 2 deletions
b_asic/GUI/about_window.py
with
12 additions
and
2 deletions
b_asic/GUI/about_window.py
+
12
−
2
View file @
92078a15
import
sys
# ONLY FOR DEBUG
from
qtpy.QtCore
import
Qt
from
qtpy.QtGui
import
QPixmap
from
qtpy.QtGui
import
QCursor
,
QPixmap
from
qtpy.QtWidgets
import
QApplication
# ONLY FOR DEBUG
from
qtpy.QtWidgets
import
(
QDialog
,
...
...
@@ -10,6 +10,7 @@ from qtpy.QtWidgets import (
QLabel
,
QPushButton
,
QScrollArea
,
QToolTip
,
QVBoxLayout
,
)
...
...
@@ -124,6 +125,13 @@ class AboutWindow(QDialog):
self
.
add_information_to_layout
()
def
hoverText
(
self
,
url
):
# self.setWindowTitle(url) # When removing mouse, the title gets "B-ASIC Scheduler". Where does THAT come from?
if
url
:
QToolTip
.
showText
(
QCursor
.
pos
(),
url
)
else
:
QToolTip
.
hideText
()
def
add_information_to_layout
(
self
):
# |1 Title |2 |
# | License | Logo | <- layout12
...
...
@@ -152,9 +160,11 @@ class AboutWindow(QDialog):
self
.
logo2
.
setFixedWidth
(
100
)
label3
=
QLabel
(
"""
See our <a href=
"
https://gitlab.liu.se/da/B-ASIC/
"
>git page</a>
"""
"""
See the <a href=
"
https://da.gitlab-pages.liu.se/B-ASIC/
"
>documentation page</a>
"""
"""
and the <a href=
"
https://gitlab.liu.se/da/B-ASIC/
"
>git page</a>
"""
)
label3
.
setOpenExternalLinks
(
True
)
label3
.
linkHovered
.
connect
(
self
.
hoverText
)
button4
=
QPushButton
()
button4
.
setText
(
"
OK
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment