Skip to content

Commit 2d7ddd8

Browse files
committed
ff-qtah: Make note links clickable, enable Markdown
1 parent 5ef52c3 commit 2d7ddd8

4 files changed

Lines changed: 42 additions & 19 deletions

File tree

ff-qtah/FF/Qt/TaskWidget.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ new storage onTaskUpdated = do
7373
=<< makeSimpleSizePolicy QSizePolicy.MinimumExpanding
7474
QLabel.setAlignment textContent Qt.AlignTop
7575
QLabel.setWordWrap textContent True
76+
QLabel.setTextFormat textContent Qt.MarkdownText
77+
QLabel.setTextInteractionFlags textContent Qt.TextBrowserInteraction
78+
QLabel.setOpenExternalLinks textContent True
7679

7780
hline <- QFrame.new
7881
QFrame.setFrameShape hline QFrame.HLine

ff-qtah/ff-qtah.cabal

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@ executable ff-qtah
1515
, bytestring
1616
, containers
1717
, hoppy-runtime
18-
, qtah-qt6
18+
, qtah
1919
, stm
2020
, text
2121
, time
2222

2323
-- organization
24-
build-depends:
25-
-- , ron-rdt
26-
, ron-storage
24+
build-depends: ron-storage
2725

26+
-- , ron-rdt
2827
-- project
2928
build-depends: ff-core
3029
ghc-options: -dynamic

stack.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ extra-deps:
2020
- hoppy-generator-0.9.0
2121
- hoppy-runtime-0.9.0
2222
- hoppy-std-0.9.0
23-
- qtah-cpp-qt6-0.9.1
24-
- qtah-generator-0.9.1
25-
- qtah-qt6-0.9.1
23+
# - qtah-cpp-qt6-0.9.1
24+
# - qtah-generator-0.9.1
25+
# - qtah-qt6-0.9.1
26+
- git: https://git.sr.ht/~cblp/qtah
27+
commit: dc830718ca0be46f1fb7408f237a5b3d0aae26a5 # 0.9.1 + cblp's patches
28+
subdirs: [qtah-cpp, qtah-generator, qtah]
2629
# ff-test
2730
- cmark-0.6.1
2831

stack.yaml.lock

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,44 @@ packages:
7878
original:
7979
hackage: hoppy-std-0.9.0
8080
- completed:
81-
hackage: qtah-cpp-qt6-0.9.1@sha256:6ca8430faa90c38d1a1f4289f9436ab98bec1d9a821169873e5af5774a9658f6,1531
81+
commit: dc830718ca0be46f1fb7408f237a5b3d0aae26a5
82+
git: https://git.sr.ht/~cblp/qtah
83+
name: qtah-cpp
8284
pantry-tree:
83-
sha256: a5dbab3a793d15f3af50a96ff94a163c7157dac462dc8fb0cd5c2af92a626a1c
84-
size: 1805
85+
sha256: a3dcf0c8b4802a5b3ab5fb431e4a0119600c01e884f6f4b4642ca3b578bf0fd3
86+
size: 1906
87+
subdir: qtah-cpp
88+
version: 0.9.2
8589
original:
86-
hackage: qtah-cpp-qt6-0.9.1
90+
commit: dc830718ca0be46f1fb7408f237a5b3d0aae26a5
91+
git: https://git.sr.ht/~cblp/qtah
92+
subdir: qtah-cpp
8793
- completed:
88-
hackage: qtah-generator-0.9.1@sha256:9964fa72160d0863ccbc581e5dc067aef8191eae812827ed8affe849700c9cf7,16397
94+
commit: dc830718ca0be46f1fb7408f237a5b3d0aae26a5
95+
git: https://git.sr.ht/~cblp/qtah
96+
name: qtah-generator
8997
pantry-tree:
90-
sha256: 83fe0d82a62983984e4a103ba684334be73c97dac5a24f1101816e4e1ca3ba05
91-
size: 28524
98+
sha256: ab3ed50eed88812493768039c745b07f48f90314875151c55011fbc919b508dd
99+
size: 28576
100+
subdir: qtah-generator
101+
version: 0.9.2
92102
original:
93-
hackage: qtah-generator-0.9.1
103+
commit: dc830718ca0be46f1fb7408f237a5b3d0aae26a5
104+
git: https://git.sr.ht/~cblp/qtah
105+
subdir: qtah-generator
94106
- completed:
95-
hackage: qtah-qt6-0.9.1@sha256:a8121f84c79c18b1a251966add0005757866c92849c0e491b5e802dddc35d1de,50363
107+
commit: dc830718ca0be46f1fb7408f237a5b3d0aae26a5
108+
git: https://git.sr.ht/~cblp/qtah
109+
name: qtah
96110
pantry-tree:
97-
sha256: 2837b99f5a1ca9a244e8a856d914f75bbe28932dcb59bb54c6746512c31412d3
98-
size: 1086
111+
sha256: e38993914a2b44c8603afa33cb919ef5f08951eea71af70c788e0be23d377ad6
112+
size: 1134
113+
subdir: qtah
114+
version: 0.9.2
99115
original:
100-
hackage: qtah-qt6-0.9.1
116+
commit: dc830718ca0be46f1fb7408f237a5b3d0aae26a5
117+
git: https://git.sr.ht/~cblp/qtah
118+
subdir: qtah
101119
- completed:
102120
hackage: cmark-0.6.1@sha256:5994e5d56d286e857063375154eac4128aea835ec867955963c27237823b8085,3361
103121
pantry-tree:

0 commit comments

Comments
 (0)