mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Merge pull request #11726 from mackal/dolphinqt-memory-leaks
DolphinQt: Fix memory leaks
This commit is contained in:
commit
25fba7247e
@ -62,6 +62,7 @@ void FilesystemWidget::CreateWidgets()
|
||||
m_tree_view = new QTreeView(this);
|
||||
m_tree_view->setModel(m_tree_model);
|
||||
m_tree_view->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
m_tree_model->setParent(m_tree_view);
|
||||
|
||||
auto* header = m_tree_view->header();
|
||||
|
||||
|
@ -47,6 +47,7 @@ void LogConfigWidget::CreateWidgets()
|
||||
m_verbosity_warning = new QRadioButton(tr("Warning"));
|
||||
m_verbosity_info = new QRadioButton(tr("Info"));
|
||||
m_verbosity_debug = new QRadioButton(tr("Debug"));
|
||||
m_verbosity_debug->setVisible(Common::Log::MAX_LOGLEVEL == Common::Log::LogLevel::LDEBUG);
|
||||
|
||||
auto* outputs = new QGroupBox(tr("Logger Outputs"));
|
||||
auto* outputs_layout = new QVBoxLayout;
|
||||
@ -77,10 +78,7 @@ void LogConfigWidget::CreateWidgets()
|
||||
verbosity_layout->addWidget(m_verbosity_error);
|
||||
verbosity_layout->addWidget(m_verbosity_warning);
|
||||
verbosity_layout->addWidget(m_verbosity_info);
|
||||
if constexpr (Common::Log::MAX_LOGLEVEL == Common::Log::LogLevel::LDEBUG)
|
||||
{
|
||||
verbosity_layout->addWidget(m_verbosity_debug);
|
||||
}
|
||||
verbosity_layout->addWidget(m_verbosity_debug);
|
||||
|
||||
layout->addWidget(outputs);
|
||||
outputs_layout->addWidget(m_out_file);
|
||||
|
@ -249,12 +249,12 @@ void MemoryWidget::CreateWidgets()
|
||||
QMenuBar* menubar = new QMenuBar(sidebar);
|
||||
menubar->setNativeMenuBar(false);
|
||||
|
||||
QMenu* menu_import = new QMenu(tr("&Import"));
|
||||
QMenu* menu_import = new QMenu(tr("&Import"), menubar);
|
||||
menu_import->addAction(tr("&Load file to current address"), this,
|
||||
&MemoryWidget::OnSetValueFromFile);
|
||||
menubar->addMenu(menu_import);
|
||||
|
||||
QMenu* menu_export = new QMenu(tr("&Export"));
|
||||
QMenu* menu_export = new QMenu(tr("&Export"), menubar);
|
||||
menu_export->addAction(tr("Dump &MRAM"), this, &MemoryWidget::OnDumpMRAM);
|
||||
menu_export->addAction(tr("Dump &ExRAM"), this, &MemoryWidget::OnDumpExRAM);
|
||||
menu_export->addAction(tr("Dump &ARAM"), this, &MemoryWidget::OnDumpARAM);
|
||||
|
@ -189,7 +189,8 @@ void InterfacePane::CreateInGame()
|
||||
m_vboxlayout_hide_mouse->addWidget(m_radio_cursor_visible_never);
|
||||
m_vboxlayout_hide_mouse->addWidget(m_radio_cursor_visible_always);
|
||||
|
||||
m_checkbox_lock_mouse = new QCheckBox(tr("Lock Mouse Cursor"));
|
||||
// this ends up not being managed unless _WIN32, so lets not leak
|
||||
m_checkbox_lock_mouse = new QCheckBox(tr("Lock Mouse Cursor"), this);
|
||||
m_checkbox_lock_mouse->setToolTip(tr("Will lock the Mouse Cursor to the Render Widget as long as "
|
||||
"it has focus. You can set a hotkey to unlock it."));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user