Skip to content

Commit 5ac0faa

Browse files
author
Alexander Bychuk
committed
fix : font
1 parent 96a5d9a commit 5ac0faa

File tree

2 files changed

+72
-31
lines changed

2 files changed

+72
-31
lines changed

mainwindow.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <QFileDialog>
77
#include <QShortcut>
88
#include <QMessageBox>
9+
#include <QFontDatabase>
910

1011
MainWindow::MainWindow(const QString &fileName, QWidget *parent)
1112
: QMainWindow(parent),
@@ -20,6 +21,11 @@ MainWindow::MainWindow(const QString &fileName, QWidget *parent)
2021
exitAct(nullptr) {
2122
ui->setupUi(this);
2223

24+
QFont fixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont);
25+
QString fixedFontName = fixedFont.toString();
26+
27+
ui->listWidgetExportTable->setFont(fixedFont);
28+
2329
shortcutClose = new QShortcut(QKeySequence(Qt::Key_Escape), this);
2430
connect(shortcutClose, SIGNAL(activated()), this, SLOT(close()));
2531

mainwindow.ui

Lines changed: 66 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@
113113
</property>
114114
</widget>
115115
</item>
116+
<item>
117+
<spacer name="horizontalSpacer_6">
118+
<property name="orientation">
119+
<enum>Qt::Horizontal</enum>
120+
</property>
121+
<property name="sizeHint" stdset="0">
122+
<size>
123+
<width>40</width>
124+
<height>20</height>
125+
</size>
126+
</property>
127+
</spacer>
128+
</item>
116129
</layout>
117130
</item>
118131
<item>
@@ -137,6 +150,19 @@
137150
</property>
138151
</widget>
139152
</item>
153+
<item>
154+
<spacer name="horizontalSpacer_7">
155+
<property name="orientation">
156+
<enum>Qt::Horizontal</enum>
157+
</property>
158+
<property name="sizeHint" stdset="0">
159+
<size>
160+
<width>40</width>
161+
<height>20</height>
162+
</size>
163+
</property>
164+
</spacer>
165+
</item>
140166
</layout>
141167
</item>
142168
<item>
@@ -161,6 +187,19 @@
161187
</property>
162188
</widget>
163189
</item>
190+
<item>
191+
<spacer name="horizontalSpacer_8">
192+
<property name="orientation">
193+
<enum>Qt::Horizontal</enum>
194+
</property>
195+
<property name="sizeHint" stdset="0">
196+
<size>
197+
<width>40</width>
198+
<height>20</height>
199+
</size>
200+
</property>
201+
</spacer>
202+
</item>
164203
</layout>
165204
</item>
166205
<item>
@@ -185,6 +224,19 @@
185224
</property>
186225
</widget>
187226
</item>
227+
<item>
228+
<spacer name="horizontalSpacer_9">
229+
<property name="orientation">
230+
<enum>Qt::Horizontal</enum>
231+
</property>
232+
<property name="sizeHint" stdset="0">
233+
<size>
234+
<width>40</width>
235+
<height>20</height>
236+
</size>
237+
</property>
238+
</spacer>
239+
</item>
188240
</layout>
189241
</item>
190242
<item>
@@ -209,15 +261,23 @@
209261
</property>
210262
</widget>
211263
</item>
264+
<item>
265+
<spacer name="horizontalSpacer_10">
266+
<property name="orientation">
267+
<enum>Qt::Horizontal</enum>
268+
</property>
269+
<property name="sizeHint" stdset="0">
270+
<size>
271+
<width>40</width>
272+
<height>20</height>
273+
</size>
274+
</property>
275+
</spacer>
276+
</item>
212277
</layout>
213278
</item>
214279
<item>
215280
<widget class="QGroupBox" name="groupUserGroup">
216-
<property name="font">
217-
<font>
218-
<family>Ubuntu Mono</family>
219-
</font>
220-
</property>
221281
<property name="title">
222282
<string>Holder</string>
223283
</property>
@@ -296,11 +356,6 @@
296356
</item>
297357
<item>
298358
<widget class="QGroupBox" name="groupBoxOwner">
299-
<property name="font">
300-
<font>
301-
<family>Ubuntu Mono</family>
302-
</font>
303-
</property>
304359
<property name="title">
305360
<string>Owner</string>
306361
</property>
@@ -377,11 +432,6 @@
377432
</item>
378433
<item>
379434
<widget class="QGroupBox" name="groupBoxGroup">
380-
<property name="font">
381-
<font>
382-
<family>Ubuntu Mono</family>
383-
</font>
384-
</property>
385435
<property name="title">
386436
<string>Group</string>
387437
</property>
@@ -458,11 +508,6 @@
458508
</item>
459509
<item>
460510
<widget class="QGroupBox" name="groupBoxOther">
461-
<property name="font">
462-
<font>
463-
<family>Ubuntu Mono</family>
464-
</font>
465-
</property>
466511
<property name="title">
467512
<string>Other</string>
468513
</property>
@@ -551,11 +596,6 @@
551596
</item>
552597
<item>
553598
<widget class="QGroupBox" name="groupBoxInfo">
554-
<property name="font">
555-
<font>
556-
<family>Ubuntu Mono</family>
557-
</font>
558-
</property>
559599
<property name="title">
560600
<string>Info</string>
561601
</property>
@@ -589,11 +629,6 @@
589629
<layout class="QGridLayout" name="gridLayout_9">
590630
<item row="0" column="0">
591631
<widget class="QListWidget" name="listWidgetExportTable">
592-
<property name="font">
593-
<font>
594-
<family>Menlo</family>
595-
</font>
596-
</property>
597632
<property name="sortingEnabled">
598633
<bool>false</bool>
599634
</property>
@@ -611,7 +646,7 @@
611646
<x>0</x>
612647
<y>0</y>
613648
<width>725</width>
614-
<height>22</height>
649+
<height>21</height>
615650
</rect>
616651
</property>
617652
</widget>

0 commit comments

Comments
 (0)