diff options
author | Lectem <lectem@gmail.com> | 2015-07-25 14:24:02 +0200 |
---|---|---|
committer | Lectem <lectem@gmail.com> | 2015-07-25 22:13:23 +0200 |
commit | e286cfbadf897212fe53aeba06fa74c8af644231 (patch) | |
tree | 510cceb85d722b71a24d6c4e1af54cce24b541d3 | |
parent | citra-qt/command list: Split register and value columns. (diff) | |
download | yuzu-e286cfbadf897212fe53aeba06fa74c8af644231.tar yuzu-e286cfbadf897212fe53aeba06fa74c8af644231.tar.gz yuzu-e286cfbadf897212fe53aeba06fa74c8af644231.tar.bz2 yuzu-e286cfbadf897212fe53aeba06fa74c8af644231.tar.lz yuzu-e286cfbadf897212fe53aeba06fa74c8af644231.tar.xz yuzu-e286cfbadf897212fe53aeba06fa74c8af644231.tar.zst yuzu-e286cfbadf897212fe53aeba06fa74c8af644231.zip |
-rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cpp index 425e127e8..7ac3ea542 100644 --- a/src/citra_qt/debugger/graphics_cmdlists.cpp +++ b/src/citra_qt/debugger/graphics_cmdlists.cpp @@ -10,6 +10,7 @@ #include <QPushButton> #include <QVBoxLayout> #include <QTreeView> +#include <QHeaderView> #include <QSpinBox> #include <QComboBox> @@ -301,6 +302,13 @@ GPUCommandListWidget::GPUCommandListWidget(QWidget* parent) : QDockWidget(tr("Pi list_widget->setModel(model); list_widget->setFont(QFont("monospace")); list_widget->setRootIsDecorated(false); + list_widget->setUniformRowHeights(true); + +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + list_widget->header()->setSectionResizeMode(QHeaderView::ResizeToContents); +#else + list_widget->header()->setResizeMode(QHeaderView::ResizeToContents); +#endif connect(list_widget->selectionModel(), SIGNAL(currentChanged(const QModelIndex&,const QModelIndex&)), this, SLOT(SetCommandInfo(const QModelIndex&))); |