citra-qt: Add helper function to get a monospace QFont

This commit is contained in:
Yuri Kunde Schlesner 2015-08-19 17:00:56 -03:00
parent afd45d1d7f
commit c7745408f7
6 changed files with 32 additions and 5 deletions

View file

@ -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);