yuzu/debugger: Specify string conversions explicitly
This commit is contained in:
@ -76,11 +76,11 @@ QVariant GPUCommandListModel::data(const QModelIndex& index, int role) const {
|
||||
case 0:
|
||||
return QString::fromLatin1(Pica::Regs::GetRegisterName(write.cmd_id));
|
||||
case 1:
|
||||
return QString("%1").arg(write.cmd_id, 3, 16, QLatin1Char('0'));
|
||||
return QStringLiteral("%1").arg(write.cmd_id, 3, 16, QLatin1Char('0'));
|
||||
case 2:
|
||||
return QString("%1").arg(write.mask, 4, 2, QLatin1Char('0'));
|
||||
return QStringLiteral("%1").arg(write.mask, 4, 2, QLatin1Char('0'));
|
||||
case 3:
|
||||
return QString("%1").arg(write.value, 8, 16, QLatin1Char('0'));
|
||||
return QStringLiteral("%1").arg(write.value, 8, 16, QLatin1Char('0'));
|
||||
}
|
||||
} else if (role == CommandIdRole) {
|
||||
return QVariant::fromValue<int>(write.cmd_id);
|
||||
@ -184,7 +184,7 @@ void GPUCommandListWidget::SetCommandInfo(const QModelIndex& index) {
|
||||
|
||||
GPUCommandListWidget::GPUCommandListWidget(QWidget* parent)
|
||||
: QDockWidget(tr("Pica Command List"), parent) {
|
||||
setObjectName("Pica Command List");
|
||||
setObjectName(QStringLiteral("Pica Command List"));
|
||||
GPUCommandListModel* model = new GPUCommandListModel(this);
|
||||
|
||||
QWidget* main_widget = new QWidget;
|
||||
@ -246,9 +246,9 @@ void GPUCommandListWidget::CopyAllToClipboard() {
|
||||
for (int col = 0; col < model->columnCount({}); ++col) {
|
||||
QModelIndex index = model->index(row, col);
|
||||
text += model->data(index).value<QString>();
|
||||
text += '\t';
|
||||
text += QLatin1Char('\t');
|
||||
}
|
||||
text += '\n';
|
||||
text += QLatin1Char('\n');
|
||||
}
|
||||
|
||||
clipboard->setText(text);
|
||||
|
Reference in New Issue
Block a user