ProjectExlorer: Streamline creation of NamedWidgets

Change-Id: I67c1506ea4e2d7722c9ce38738e350418d725a0e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-10-31 17:37:49 +01:00
parent 0d9425b51b
commit 6908ecc084
12 changed files with 19 additions and 62 deletions

View File

@@ -81,6 +81,7 @@ static QModelIndex mapToSource(const QAbstractItemView *view, const QModelIndex
// --------------------------------------------------------------------
CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc) :
NamedWidget(tr("CMake")),
m_buildConfiguration(bc),
m_configModel(new ConfigModel(this)),
m_configFilterModel(new Utils::CategorySortFilterModel),
@@ -88,8 +89,6 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc)
{
QTC_CHECK(bc);
setDisplayName(tr("CMake"));
auto vbox = new QVBoxLayout(this);
vbox->setContentsMargins(0, 0, 0, 0);
auto container = new Utils::DetailsWidget;

View File

@@ -35,25 +35,10 @@
#include <projectexplorer/buildsystem.h>
#include <projectexplorer/project.h>
#include <utils/fileutils.h>
#include <QFuture>
#include <QHash>
#include <QTimer>
#include <memory>
namespace CppTools { class CppProjectUpdater; }
namespace ProjectExplorer { class FileNode; }
namespace CMakeProjectManager {
namespace Internal {
class CMakeBuildConfiguration;
class CMakeBuildSettingsWidget;
class CMakeProjectNode;
} // namespace Internal
class CMAKE_EXPORT CMakeProject : public ProjectExplorer::Project
{
Q_OBJECT