Merge pull request #6511 from leoetlino/qt

Qt: Minor fixes
This commit is contained in:
Léo Lam 2018-03-26 21:24:44 +02:00 committed by GitHub
commit c9b4e3959c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -40,7 +40,7 @@ void WrapInScrollArea(QWidget* parent, QLayout* wrapped_layout, QWidget* to_resi
auto* widget = new QWidget; auto* widget = new QWidget;
widget->setLayout(wrapped_layout); 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; auto* scroll_layout = new QVBoxLayout;
scroll_layout->addWidget(scroll_area); scroll_layout->addWidget(scroll_area);

View File

@ -24,13 +24,13 @@ void SearchBar::CreateWidgets()
m_search_edit = new QLineEdit; m_search_edit = new QLineEdit;
m_close_button = new QPushButton(tr("Close")); 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; auto* layout = new QHBoxLayout;
layout->addWidget(m_search_edit); layout->addWidget(m_search_edit);
layout->addWidget(m_close_button); layout->addWidget(m_close_button);
layout->setMargin(0); layout->setSizeConstraint(QLayout::SetMinAndMaxSize);
setLayout(layout); setLayout(layout);
} }

View File

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

View File

@ -116,6 +116,8 @@ void GameCubePane::CreateWidgets()
layout->addWidget(ipl_box); layout->addWidget(ipl_box);
layout->addWidget(device_box); layout->addWidget(device_box);
layout->addStretch();
setLayout(layout); setLayout(layout);
} }