mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
CodeViewWidget: Replaces usages of QString::fromStdString with QStringLiteral where applicable
There's no need to construct a std::string here, when there's no dynamic elements to the text.
This commit is contained in:
parent
644bbb29f3
commit
bbc0aee5ea
1 changed files with 3 additions and 3 deletions
|
@ -395,12 +395,12 @@ void CodeViewWidget::OnSelectionChanged()
|
||||||
{
|
{
|
||||||
if (m_address == PowerPC::ppcState.pc)
|
if (m_address == PowerPC::ppcState.pc)
|
||||||
{
|
{
|
||||||
setStyleSheet(QString::fromStdString(
|
setStyleSheet(
|
||||||
"QTableView::item:selected {background-color: #00FF00; color: #000000;}"));
|
QStringLiteral("QTableView::item:selected {background-color: #00FF00; color: #000000;}"));
|
||||||
}
|
}
|
||||||
else if (!styleSheet().isEmpty())
|
else if (!styleSheet().isEmpty())
|
||||||
{
|
{
|
||||||
setStyleSheet(QString::fromStdString(""));
|
setStyleSheet(QStringLiteral(""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue