Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/src/gui/dialog/about.cpp Wed Oct 04 01:46:33 2023 -0400 +++ b/src/gui/dialog/about.cpp Fri Oct 06 06:18:53 2023 -0400 @@ -16,17 +16,17 @@ #define SET_TITLE_FONT(font, format, cursor) \ { \ - font = cursor.charFormat().font(); \ - font.setPixelSize(16); \ - format.setFont(font); \ + QFont fnt; \ + fnt.setPixelSize(16); \ + format.setFont(fnt); \ cursor.setCharFormat(format); \ } #define SET_PARAGRAPH_FONT(font, format, cursor) \ { \ - font = cursor.charFormat().font(); \ - font.setPixelSize(12); \ - format.setFont(font); \ + QFont fnt; \ + fnt.setPixelSize(12); \ + format.setFont(fnt); \ cursor.setCharFormat(format); \ } @@ -48,12 +48,18 @@ #define SET_FORMAT_HYPERLINK(format, cursor, link) \ { \ + font = cursor.charFormat().font(); \ + font.setUnderline(true); \ + format.setFont(font); \ format.setAnchor(true); \ format.setAnchorHref(link); \ cursor.setCharFormat(format); \ } #define UNSET_FORMAT_HYPERLINK(format, cursor) \ { \ + font = cursor.charFormat().font(); \ + font.setUnderline(false); \ + format.setFont(font); \ format.setAnchor(false); \ format.setAnchorHref(""); \ cursor.setCharFormat(format); \