summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2021-08-21 10:35:21 -0700
committerDentomologist <dentomologist@gmail.com>2021-08-21 10:53:12 -0700
commit87924f2ddd0060281fbfa3d08cfb41428d68ca28 (patch)
tree8abf95c7223d550d67a2ce2bceee360cecb56410 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
parent17a01c894b7720e141c13638af639169a3c66f4b (diff)
DolphinQt: Remove Windows dialog help buttons
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
index 34b58a6582..0b571e9502 100644
--- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
@@ -638,15 +638,15 @@ void CodeViewWidget::OnRenameSymbol()
{
const u32 addr = GetContextAddress();
- Common::Symbol* symbol = g_symbolDB.GetSymbolFromAddr(addr);
+ Common::Symbol* const symbol = g_symbolDB.GetSymbolFromAddr(addr);
if (!symbol)
return;
bool good;
- QString name =
+ const QString name =
QInputDialog::getText(this, tr("Rename symbol"), tr("Symbol name:"), QLineEdit::Normal,
- QString::fromStdString(symbol->name), &good);
+ QString::fromStdString(symbol->name), &good, Qt::WindowCloseButtonHint);
if (good && !name.isEmpty())
{
@@ -673,16 +673,16 @@ void CodeViewWidget::OnSetSymbolSize()
{
const u32 addr = GetContextAddress();
- Common::Symbol* symbol = g_symbolDB.GetSymbolFromAddr(addr);
+ Common::Symbol* const symbol = g_symbolDB.GetSymbolFromAddr(addr);
if (!symbol)
return;
bool good;
- int size =
+ const int size =
QInputDialog::getInt(this, tr("Rename symbol"),
tr("Set symbol size (%1):").arg(QString::fromStdString(symbol->name)),
- symbol->size, 1, 0xFFFF, 1, &good);
+ symbol->size, 1, 0xFFFF, 1, &good, Qt::WindowCloseButtonHint);
if (!good)
return;
@@ -696,18 +696,19 @@ void CodeViewWidget::OnSetSymbolEndAddress()
{
const u32 addr = GetContextAddress();
- Common::Symbol* symbol = g_symbolDB.GetSymbolFromAddr(addr);
+ Common::Symbol* const symbol = g_symbolDB.GetSymbolFromAddr(addr);
if (!symbol)
return;
bool good;
- QString name = QInputDialog::getText(
+ const QString name = QInputDialog::getText(
this, tr("Set symbol end address"),
tr("Symbol (%1) end address:").arg(QString::fromStdString(symbol->name)), QLineEdit::Normal,
- QStringLiteral("%1").arg(addr + symbol->size, 8, 16, QLatin1Char('0')), &good);
+ QStringLiteral("%1").arg(addr + symbol->size, 8, 16, QLatin1Char('0')), &good,
+ Qt::WindowCloseButtonHint);
- u32 address = name.toUInt(&good, 16);
+ const u32 address = name.toUInt(&good, 16);
if (!good)
return;