mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
CodeWidget: Fix shadowing warning
This commit is contained in:
parent
470115fd4f
commit
5c8d8383e2
@ -110,14 +110,14 @@ void CodeWidget::CreateWidgets()
|
|||||||
|
|
||||||
auto add_search_line_edit = [this](const QString& name, QListWidget* list_widget) {
|
auto add_search_line_edit = [this](const QString& name, QListWidget* list_widget) {
|
||||||
auto* widget = new QWidget;
|
auto* widget = new QWidget;
|
||||||
auto* layout = new QGridLayout;
|
auto* line_layout = new QGridLayout;
|
||||||
auto* label = new QLabel(name);
|
auto* label = new QLabel(name);
|
||||||
auto* search_line_edit = new QLineEdit;
|
auto* search_line_edit = new QLineEdit;
|
||||||
|
|
||||||
widget->setLayout(layout);
|
widget->setLayout(line_layout);
|
||||||
layout->addWidget(label, 0, 0);
|
line_layout->addWidget(label, 0, 0);
|
||||||
layout->addWidget(search_line_edit, 0, 1);
|
line_layout->addWidget(search_line_edit, 0, 1);
|
||||||
layout->addWidget(list_widget, 1, 0, -1, -1);
|
line_layout->addWidget(list_widget, 1, 0, -1, -1);
|
||||||
m_box_splitter->addWidget(widget);
|
m_box_splitter->addWidget(widget);
|
||||||
return search_line_edit;
|
return search_line_edit;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user