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

@ -15,6 +15,8 @@
#include <QSpinBox>
#include <QTreeView>
#include "citra_qt/util/util.h"
#include "video_core/shader/shader.h"
#include "graphics_vertex_shader.h"
@ -245,7 +247,7 @@ QVariant GraphicsVertexShaderModel::data(const QModelIndex& index, int role) con
}
case Qt::FontRole:
return QFont("monospace");
return GetMonospaceFont();
case Qt::BackgroundRole:
// Highlight instructions which have no debug data associated to them