File tree Expand file tree Collapse file tree 3 files changed +5
-23
lines changed
Expand file tree Collapse file tree 3 files changed +5
-23
lines changed Original file line number Diff line number Diff line change 77#include < QtWidgets/QScrollBar>
88#include < QtGui/QPainter>
99#include < QtGui/QClipboard>
10+ #include < QtGui/QFontDatabase>
1011
1112HexWidget::HexWidget (QWidget *parent) : QAbstractScrollArea{parent}, m_data{Q_NULLPTR} {
12- #ifdef Q_OS_WIN
13- setFont (QFont (QStringLiteral (" Courier" ), 10 ));
14- #else
15- setFont (QFont (QStringLiteral (" Monospace" ), 10 ));
16- #endif
13+ QFont monospace = QFontDatabase::systemFont (QFontDatabase::FixedFont);
14+ monospace.setStyleHint (QFont::Monospace);
15+ monospace.setPointSize (10 );
16+ setFont (monospace);
1717
1818 connect (verticalScrollBar (), &QScrollBar::valueChanged, this , &HexWidget::scroll);
1919 connect (horizontalScrollBar (), &QScrollBar::valueChanged, this , &HexWidget::adjust);
Original file line number Diff line number Diff line change 13551355 </property >
13561356 <property name =" font" >
13571357 <font >
1358- <family >MS Shell Dlg 2</family >
13591358 <pointsize >9</pointsize >
13601359 </font >
13611360 </property >
13951394 </property >
13961395 <property name =" font" >
13971396 <font >
1398- <family >MS Shell Dlg 2</family >
13991397 <pointsize >9</pointsize >
14001398 </font >
14011399 </property >
14351433 </property >
14361434 <property name =" font" >
14371435 <font >
1438- <family >MS Shell Dlg 2</family >
14391436 <pointsize >9</pointsize >
14401437 </font >
14411438 </property >
14751472 </property >
14761473 <property name =" font" >
14771474 <font >
1478- <family >MS Shell Dlg 2</family >
14791475 <pointsize >9</pointsize >
14801476 </font >
14811477 </property >
20432039 </property >
20442040 <property name =" font" >
20452041 <font >
2046- <family >MS Shell Dlg 2</family >
20472042 <pointsize >9</pointsize >
20482043 </font >
20492044 </property >
20832078 </property >
20842079 <property name =" font" >
20852080 <font >
2086- <family >MS Shell Dlg 2</family >
20872081 <pointsize >9</pointsize >
20882082 </font >
20892083 </property >
21232117 </property >
21242118 <property name =" font" >
21252119 <font >
2126- <family >MS Shell Dlg 2</family >
21272120 <pointsize >9</pointsize >
21282121 </font >
21292122 </property >
22312224 </property >
22322225 <property name =" font" >
22332226 <font >
2234- <family >MS Shell Dlg 2</family >
22352227 <pointsize >9</pointsize >
22362228 </font >
22372229 </property >
24042396 </property >
24052397 <property name =" font" >
24062398 <font >
2407- <family >MS Shell Dlg 2</family >
24082399 <pointsize >9</pointsize >
24092400 </font >
24102401 </property >
24442435 </property >
24452436 <property name =" font" >
24462437 <font >
2447- <family >MS Shell Dlg 2</family >
24482438 <pointsize >9</pointsize >
24492439 </font >
24502440 </property >
24842474 </property >
24852475 <property name =" font" >
24862476 <font >
2487- <family >MS Shell Dlg 2</family >
24882477 <pointsize >9</pointsize >
24892478 </font >
24902479 </property >
25242513 </property >
25252514 <property name =" font" >
25262515 <font >
2527- <family >MS Shell Dlg 2</family >
25282516 <pointsize >9</pointsize >
25292517 </font >
25302518 </property >
25642552 </property >
25652553 <property name =" font" >
25662554 <font >
2567- <family >MS Shell Dlg 2</family >
25682555 <pointsize >9</pointsize >
25692556 </font >
25702557 </property >
26042591 </property >
26052592 <property name =" font" >
26062593 <font >
2607- <family >MS Shell Dlg 2</family >
26082594 <pointsize >9</pointsize >
26092595 </font >
26102596 </property >
29532939 </property >
29542940 <property name =" font" >
29552941 <font >
2956- <family >MS Shell Dlg 2</family >
29572942 <pointsize >9</pointsize >
29582943 </font >
29592944 </property >
30663051 </property >
30673052 <property name =" font" >
30683053 <font >
3069- <family >MS Shell Dlg 2</family >
30703054 <pointsize >9</pointsize >
30713055 </font >
30723056 </property >
31163100 </property >
31173101 <property name =" font" >
31183102 <font >
3119- <family >MS Shell Dlg 2</family >
31203103 <pointsize >9</pointsize >
31213104 </font >
31223105 </property >
Original file line number Diff line number Diff line change 160160 </property >
161161 <property name =" font" >
162162 <font >
163- <family >Aharoni</family >
164163 <pointsize >14</pointsize >
165164 <weight >75</weight >
166165 <bold >true</bold >
You can’t perform that action at this time.
0 commit comments