Skip to content
Permalink
Browse files
Merge pull request #6511 from leoetlino/qt
Qt: Minor fixes
  • Loading branch information
leoetlino committed Mar 26, 2018
2 parents 91f61a1 + 2d0d4fe commit c9b4e39
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
@@ -40,7 +40,7 @@ void WrapInScrollArea(QWidget* parent, QLayout* wrapped_layout, QWidget* to_resi
auto* widget = new QWidget;
widget->setLayout(wrapped_layout);

auto* scroll_area = GetWrappedWidget(widget, to_resize);
auto* scroll_area = GetWrappedWidget(widget, to_resize, 0, 0);

auto* scroll_layout = new QVBoxLayout;
scroll_layout->addWidget(scroll_area);
@@ -24,13 +24,13 @@ void SearchBar::CreateWidgets()
m_search_edit = new QLineEdit;
m_close_button = new QPushButton(tr("Close"));

m_search_edit->setPlaceholderText(tr("Type your search term here"));
m_search_edit->setPlaceholderText(tr("Search games..."));

auto* layout = new QHBoxLayout;

layout->addWidget(m_search_edit);
layout->addWidget(m_close_button);
layout->setMargin(0);
layout->setSizeConstraint(QLayout::SetMinAndMaxSize);

setLayout(layout);
}
@@ -226,6 +226,8 @@ void Settings::SetDebugModeEnabled(bool enabled)
SConfig::GetInstance().bEnableDebugging = enabled;
emit DebugModeToggled(enabled);
}
if (enabled)
SetCodeVisible(true);
}

bool Settings::IsDebugModeEnabled() const
@@ -116,6 +116,8 @@ void GameCubePane::CreateWidgets()
layout->addWidget(ipl_box);
layout->addWidget(device_box);

layout->addStretch();

setLayout(layout);
}

0 comments on commit c9b4e39

Please sign in to comment.