diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2015-08-15 20:13:48 +0200 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2015-08-16 14:12:12 +0200 |
commit | 32592364b8f43232fce583d9711a653e99953028 (patch) | |
tree | 4f67fb221da50ada7a62efc45788d16950ef16f6 /src/citra_qt/debugger/graphics_vertex_shader.cpp | |
parent | citra-qt: Fix comment style. (diff) | |
download | yuzu-32592364b8f43232fce583d9711a653e99953028.tar yuzu-32592364b8f43232fce583d9711a653e99953028.tar.gz yuzu-32592364b8f43232fce583d9711a653e99953028.tar.bz2 yuzu-32592364b8f43232fce583d9711a653e99953028.tar.lz yuzu-32592364b8f43232fce583d9711a653e99953028.tar.xz yuzu-32592364b8f43232fce583d9711a653e99953028.tar.zst yuzu-32592364b8f43232fce583d9711a653e99953028.zip |
Diffstat (limited to 'src/citra_qt/debugger/graphics_vertex_shader.cpp')
-rw-r--r-- | src/citra_qt/debugger/graphics_vertex_shader.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cpp index 359193226..0c17edee0 100644 --- a/src/citra_qt/debugger/graphics_vertex_shader.cpp +++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp @@ -308,14 +308,14 @@ GraphicsVertexShaderWidget::GraphicsVertexShaderWidget(std::shared_ptr< Pica::De instruction_description = new QLabel; - iteration_index = new QSpinBox; + cycle_index = new QSpinBox; connect(this, SIGNAL(SelectCommand(const QModelIndex&, QItemSelectionModel::SelectionFlags)), binary_list->selectionModel(), SLOT(select(const QModelIndex&, QItemSelectionModel::SelectionFlags))); connect(dump_shader, SIGNAL(clicked()), this, SLOT(DumpShader())); - connect(iteration_index, SIGNAL(valueChanged(int)), this, SLOT(OnIterationIndexChanged(int))); + connect(cycle_index, SIGNAL(valueChanged(int)), this, SLOT(OnCycleIndexChanged(int))); for (unsigned i = 0; i < ARRAY_SIZE(input_data); ++i) { connect(input_data[i], SIGNAL(textEdited(const QString&)), input_data_mapper, SLOT(map())); @@ -364,11 +364,12 @@ GraphicsVertexShaderWidget::GraphicsVertexShaderWidget(std::shared_ptr< Pica::De main_layout->addWidget(dump_shader); { auto sub_layout = new QHBoxLayout; - sub_layout->addWidget(new QLabel(tr("Iteration Index:"))); - sub_layout->addWidget(iteration_index); + sub_layout->addWidget(new QLabel(tr("Cycle Index:"))); + sub_layout->addWidget(cycle_index); main_layout->addLayout(sub_layout); } main_layout->addWidget(instruction_description); + main_layout->addStretch(); main_widget->setLayout(main_layout); setWidget(main_widget); @@ -437,9 +438,9 @@ void GraphicsVertexShaderWidget::Reload(bool replace_vertex_data, void* vertex_d input_data_container[source_attr]->setVisible(true); } - // Initialize debug info text for current iteration count - iteration_index->setMaximum(debug_data.records.size() - 1); - OnIterationIndexChanged(iteration_index->value()); + // Initialize debug info text for current cycle count + cycle_index->setMaximum(debug_data.records.size() - 1); + OnCycleIndexChanged(cycle_index->value()); model->endResetModel(); } @@ -453,7 +454,7 @@ void GraphicsVertexShaderWidget::OnInputAttributeChanged(int index) { Reload(); } -void GraphicsVertexShaderWidget::OnIterationIndexChanged(int index) { +void GraphicsVertexShaderWidget::OnCycleIndexChanged(int index) { QString text; auto& record = debug_data.records[index]; |