diff options
| author | 2015-07-25 14:24:02 +0200 | |
|---|---|---|
| committer | 2015-07-25 22:13:23 +0200 | |
| commit | e286cfbadf897212fe53aeba06fa74c8af644231 (patch) | |
| tree | 510cceb85d722b71a24d6c4e1af54cce24b541d3 /src/citra_qt/debugger/graphics_cmdlists.cpp | |
| parent | citra-qt/command list: Split register and value columns. (diff) | |
| download | yuzu-e286cfbadf897212fe53aeba06fa74c8af644231.tar.gz yuzu-e286cfbadf897212fe53aeba06fa74c8af644231.tar.xz yuzu-e286cfbadf897212fe53aeba06fa74c8af644231.zip | |
citra-qt/command list: Enable uniform row heights and automatically resize columns.
Uniform row heights enables some optimisations for a smoother scrolling.
Resize columns to content so that we don't have to do it manually
Diffstat (limited to 'src/citra_qt/debugger/graphics_cmdlists.cpp')
| -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 @@ | |||
| 10 | #include <QPushButton> | 10 | #include <QPushButton> |
| 11 | #include <QVBoxLayout> | 11 | #include <QVBoxLayout> |
| 12 | #include <QTreeView> | 12 | #include <QTreeView> |
| 13 | #include <QHeaderView> | ||
| 13 | #include <QSpinBox> | 14 | #include <QSpinBox> |
| 14 | #include <QComboBox> | 15 | #include <QComboBox> |
| 15 | 16 | ||
| @@ -301,6 +302,13 @@ GPUCommandListWidget::GPUCommandListWidget(QWidget* parent) : QDockWidget(tr("Pi | |||
| 301 | list_widget->setModel(model); | 302 | list_widget->setModel(model); |
| 302 | list_widget->setFont(QFont("monospace")); | 303 | list_widget->setFont(QFont("monospace")); |
| 303 | list_widget->setRootIsDecorated(false); | 304 | list_widget->setRootIsDecorated(false); |
| 305 | list_widget->setUniformRowHeights(true); | ||
| 306 | |||
| 307 | #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) | ||
| 308 | list_widget->header()->setSectionResizeMode(QHeaderView::ResizeToContents); | ||
| 309 | #else | ||
| 310 | list_widget->header()->setResizeMode(QHeaderView::ResizeToContents); | ||
| 311 | #endif | ||
| 304 | 312 | ||
| 305 | connect(list_widget->selectionModel(), SIGNAL(currentChanged(const QModelIndex&,const QModelIndex&)), | 313 | connect(list_widget->selectionModel(), SIGNAL(currentChanged(const QModelIndex&,const QModelIndex&)), |
| 306 | this, SLOT(SetCommandInfo(const QModelIndex&))); | 314 | this, SLOT(SetCommandInfo(const QModelIndex&))); |