Mercurial > minori
comparison src/gui/dialog/about.cpp @ 77:6f7385bd334c
*: update
formatted all source files, no more subclassing QThread... many other
changes :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 06 Oct 2023 06:18:53 -0400 |
parents | 5ccb99bfa605 |
children |
comparison
equal
deleted
inserted
replaced
76:3364fadc8a36 | 77:6f7385bd334c |
---|---|
14 | 14 |
15 #define CONCAT_VERSION(major, minor, patch) CONCAT_VERSION_NX(major, minor, patch) | 15 #define CONCAT_VERSION(major, minor, patch) CONCAT_VERSION_NX(major, minor, patch) |
16 | 16 |
17 #define SET_TITLE_FONT(font, format, cursor) \ | 17 #define SET_TITLE_FONT(font, format, cursor) \ |
18 { \ | 18 { \ |
19 font = cursor.charFormat().font(); \ | 19 QFont fnt; \ |
20 font.setPixelSize(16); \ | 20 fnt.setPixelSize(16); \ |
21 format.setFont(font); \ | 21 format.setFont(fnt); \ |
22 cursor.setCharFormat(format); \ | 22 cursor.setCharFormat(format); \ |
23 } | 23 } |
24 | 24 |
25 #define SET_PARAGRAPH_FONT(font, format, cursor) \ | 25 #define SET_PARAGRAPH_FONT(font, format, cursor) \ |
26 { \ | 26 { \ |
27 font = cursor.charFormat().font(); \ | 27 QFont fnt; \ |
28 font.setPixelSize(12); \ | 28 fnt.setPixelSize(12); \ |
29 format.setFont(font); \ | 29 format.setFont(fnt); \ |
30 cursor.setCharFormat(format); \ | 30 cursor.setCharFormat(format); \ |
31 } | 31 } |
32 | 32 |
33 #define SET_FONT_BOLD(font, format, cursor) \ | 33 #define SET_FONT_BOLD(font, format, cursor) \ |
34 { \ | 34 { \ |
46 cursor.setCharFormat(format); \ | 46 cursor.setCharFormat(format); \ |
47 } | 47 } |
48 | 48 |
49 #define SET_FORMAT_HYPERLINK(format, cursor, link) \ | 49 #define SET_FORMAT_HYPERLINK(format, cursor, link) \ |
50 { \ | 50 { \ |
51 font = cursor.charFormat().font(); \ | |
52 font.setUnderline(true); \ | |
53 format.setFont(font); \ | |
51 format.setAnchor(true); \ | 54 format.setAnchor(true); \ |
52 format.setAnchorHref(link); \ | 55 format.setAnchorHref(link); \ |
53 cursor.setCharFormat(format); \ | 56 cursor.setCharFormat(format); \ |
54 } | 57 } |
55 #define UNSET_FORMAT_HYPERLINK(format, cursor) \ | 58 #define UNSET_FORMAT_HYPERLINK(format, cursor) \ |
56 { \ | 59 { \ |
60 font = cursor.charFormat().font(); \ | |
61 font.setUnderline(false); \ | |
62 format.setFont(font); \ | |
57 format.setAnchor(false); \ | 63 format.setAnchor(false); \ |
58 format.setAnchorHref(""); \ | 64 format.setAnchorHref(""); \ |
59 cursor.setCharFormat(format); \ | 65 cursor.setCharFormat(format); \ |
60 } | 66 } |
61 | 67 |