mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Qt: Remove the warning in the settings window
This commit is contained in:
parent
3fe8e102fc
commit
74df52fb2c
@ -26,7 +26,6 @@ SettingsWindow::SettingsWindow(QWidget* parent) : QDialog(parent)
|
|||||||
// Main Layout
|
// Main Layout
|
||||||
QVBoxLayout* layout = new QVBoxLayout;
|
QVBoxLayout* layout = new QVBoxLayout;
|
||||||
QHBoxLayout* content = new QHBoxLayout;
|
QHBoxLayout* content = new QHBoxLayout;
|
||||||
QVBoxLayout* content_inner = new QVBoxLayout;
|
|
||||||
// Content's widgets
|
// Content's widgets
|
||||||
{
|
{
|
||||||
// Category list
|
// Category list
|
||||||
@ -36,12 +35,7 @@ SettingsWindow::SettingsWindow(QWidget* parent) : QDialog(parent)
|
|||||||
// Actual Settings UI
|
// Actual Settings UI
|
||||||
SetupSettingsWidget();
|
SetupSettingsWidget();
|
||||||
|
|
||||||
MakeUnfinishedWarning();
|
content->addWidget(m_settings_outer);
|
||||||
|
|
||||||
content_inner->addWidget(m_warning_group);
|
|
||||||
content_inner->addWidget(m_settings_outer);
|
|
||||||
|
|
||||||
content->addLayout(content_inner);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add content to layout before dialog buttons.
|
// Add content to layout before dialog buttons.
|
||||||
@ -66,16 +60,6 @@ void SettingsWindow::SetupSettingsWidget()
|
|||||||
m_settings_outer->addWidget(new PathPane);
|
m_settings_outer->addWidget(new PathPane);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsWindow::MakeUnfinishedWarning()
|
|
||||||
{
|
|
||||||
m_warning_group = new QGroupBox(tr("Warning"));
|
|
||||||
QHBoxLayout* m_warning_group_layout = new QHBoxLayout;
|
|
||||||
QLabel* warning_text = new QLabel(tr("Some categories and settings will not work.\n"
|
|
||||||
"This Settings Window is under active development."));
|
|
||||||
m_warning_group_layout->addWidget(warning_text);
|
|
||||||
m_warning_group->setLayout(m_warning_group_layout);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SettingsWindow::AddCategoryToList(const QString& title, const std::string& icon_name)
|
void SettingsWindow::AddCategoryToList(const QString& title, const std::string& icon_name)
|
||||||
{
|
{
|
||||||
QString dir = Settings::Instance().GetThemeDir();
|
QString dir = Settings::Instance().GetThemeDir();
|
||||||
|
@ -24,10 +24,8 @@ public slots:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void MakeCategoryList();
|
void MakeCategoryList();
|
||||||
void MakeUnfinishedWarning();
|
|
||||||
void AddCategoryToList(const QString& title, const std::string& icon_name);
|
void AddCategoryToList(const QString& title, const std::string& icon_name);
|
||||||
void SetupSettingsWidget();
|
void SetupSettingsWidget();
|
||||||
QStackedWidget* m_settings_outer;
|
QStackedWidget* m_settings_outer;
|
||||||
QListWidget* m_categories;
|
QListWidget* m_categories;
|
||||||
QGroupBox* m_warning_group;
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user