diff options
| author | 2014-12-04 21:00:06 +0100 | |
|---|---|---|
| committer | 2014-12-09 16:37:34 +0100 | |
| commit | 8b8131baecca16b46c22318b3331b2165cc74cbc (patch) | |
| tree | 816d9a88deded411908e6d9aa22a648416c41469 /src/citra_qt/debugger/graphics_cmdlists.cpp | |
| parent | Pica: Re-enable command names on MSVC. (diff) | |
| download | yuzu-8b8131baecca16b46c22318b3331b2165cc74cbc.tar.gz yuzu-8b8131baecca16b46c22318b3331b2165cc74cbc.tar.xz yuzu-8b8131baecca16b46c22318b3331b2165cc74cbc.zip | |
More cleanups.
Diffstat (limited to 'src/citra_qt/debugger/graphics_cmdlists.cpp')
| -rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cpp index b2b8df101..7f97cf143 100644 --- a/src/citra_qt/debugger/graphics_cmdlists.cpp +++ b/src/citra_qt/debugger/graphics_cmdlists.cpp | |||
| @@ -177,14 +177,14 @@ QVariant GPUCommandListModel::data(const QModelIndex& index, int role) const { | |||
| 177 | if (role == Qt::DisplayRole) { | 177 | if (role == Qt::DisplayRole) { |
| 178 | QString content; | 178 | QString content; |
| 179 | if (index.column() == 0) { | 179 | if (index.column() == 0) { |
| 180 | content = QString::fromLatin1(Pica::Regs::GetCommandName(cmd.cmd_id).c_str()); | 180 | QString content = QString::fromLatin1(Pica::Regs::GetCommandName(cmd.cmd_id).c_str()); |
| 181 | content.append(" "); | 181 | content.append(" "); |
| 182 | return content; | ||
| 182 | } else if (index.column() == 1) { | 183 | } else if (index.column() == 1) { |
| 183 | content.append(QString("%1 ").arg(cmd.hex, 8, 16, QLatin1Char('0'))); | 184 | QString content = QString("%1 ").arg(cmd.hex, 8, 16, QLatin1Char('0')); |
| 184 | content.append(QString("%1 ").arg(val, 8, 16, QLatin1Char('0'))); | 185 | content.append(QString("%1 ").arg(val, 8, 16, QLatin1Char('0'))); |
| 186 | return content; | ||
| 185 | } | 187 | } |
| 186 | |||
| 187 | return QVariant(content); | ||
| 188 | } else if (role == CommandIdRole) { | 188 | } else if (role == CommandIdRole) { |
| 189 | return QVariant::fromValue<int>(cmd.cmd_id.Value()); | 189 | return QVariant::fromValue<int>(cmd.cmd_id.Value()); |
| 190 | } | 190 | } |