CppEditor: Use new construction pattern for project panels

Change-Id: I60dffd8fb7c00671054b5e229ba8c0a0cb622b1d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-11-15 14:55:20 +01:00
parent d739a14950
commit 20bc29face
7 changed files with 128 additions and 114 deletions

View File

@@ -3,35 +3,8 @@
#pragma once
#include "cppquickfixprojectsettings.h"
#include <projectexplorer/projectsettingswidget.h>
QT_BEGIN_NAMESPACE
class QPushButton;
QT_END_NAMESPACE
namespace ProjectExplorer { class Project; }
namespace CppEditor::Internal {
class CppQuickFixSettingsWidget;
class CppQuickFixProjectSettingsWidget : public ProjectExplorer::ProjectSettingsWidget
{
Q_OBJECT
public:
explicit CppQuickFixProjectSettingsWidget(ProjectExplorer::Project *project,
QWidget *parent = nullptr);
~CppQuickFixProjectSettingsWidget();
private:
void currentItemChanged(bool useGlobalSettings);
void buttonCustomClicked();
CppQuickFixSettingsWidget *m_settingsWidget;
CppQuickFixProjectsSettings::CppQuickFixProjectsSettingsPtr m_projectSettings;
QPushButton *m_pushButton;
};
void setupCppQuickFixProjectPanel();
} // CppEditor::Internal