forked from qt-creator/qt-creator
CMake: Fix project parsing notification
This builds on top of 08677c0b01 and
fixes one more code path to go through a common entry/exit point.
Change-Id: I1d00fa9242f247028e5d3b0ef3b5fe1d3f4cb03d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cmakeconfigitem.h"
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
#include <utils/treemodel.h>
|
||||
|
||||
@@ -65,6 +67,7 @@ public:
|
||||
const DataItem::Type type = DataItem::UNKNOWN,
|
||||
const QString &description = QString(),
|
||||
const QStringList &values = QStringList());
|
||||
void setConfiguration(const CMakeConfig &config);
|
||||
void setConfiguration(const QList<DataItem> &config);
|
||||
void setKitConfiguration(const QHash<QString, QString> &kitConfig);
|
||||
void flush();
|
||||
@@ -80,6 +83,7 @@ public:
|
||||
|
||||
QList<DataItem> configurationChanges() const;
|
||||
|
||||
|
||||
private:
|
||||
class InternalDataItem : public DataItem
|
||||
{
|
||||
@@ -97,9 +101,9 @@ private:
|
||||
QString kitValue;
|
||||
};
|
||||
|
||||
void setConfiguration(const QList<InternalDataItem> &config);
|
||||
void generateTree();
|
||||
|
||||
void setConfiguration(const QList<InternalDataItem> &config);
|
||||
QList<InternalDataItem> m_configuration;
|
||||
QHash<QString, QString> m_kitConfiguration;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user