citra-qt: Add helper function to get a monospace QFont
This commit is contained in:
parent
afd45d1d7f
commit
c7745408f7
6 changed files with 32 additions and 5 deletions
|
@ -14,6 +14,8 @@
|
|||
#include <QSpinBox>
|
||||
#include <QComboBox>
|
||||
|
||||
#include "citra_qt/util/util.h"
|
||||
|
||||
#include "common/vector_math.h"
|
||||
|
||||
#include "video_core/debug_utils/debug_utils.h"
|
||||
|
@ -303,9 +305,7 @@ GPUCommandListWidget::GPUCommandListWidget(QWidget* parent) : QDockWidget(tr("Pi
|
|||
|
||||
list_widget = new QTreeView;
|
||||
list_widget->setModel(model);
|
||||
QFont font("monospace");
|
||||
font.setStyleHint(QFont::Monospace); // Automatic fallback to a monospace font on on platforms without a font called "monospace"
|
||||
list_widget->setFont(font);
|
||||
list_widget->setFont(GetMonospaceFont());
|
||||
list_widget->setRootIsDecorated(false);
|
||||
list_widget->setUniformRowHeights(true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue