forked from qt-creator/qt-creator
Android: Use BuildSystem in AndroidExtraLibraryListModel
... instead of Target. The model is tied to an ApkBuildStep, i.e. already per-BuildConfiguration. Make the update depend on its BuildSystem parsing state, not any in the target. Change-Id: I72c00b9c40bfb7bee0375ae7b3f912f27bd18ca8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -31,19 +31,16 @@
|
||||
#include <QAbstractItemModel>
|
||||
#include <QStringList>
|
||||
|
||||
namespace ProjectExplorer {
|
||||
class RunConfiguration;
|
||||
class Target;
|
||||
}
|
||||
namespace ProjectExplorer { class BuildSystem; }
|
||||
|
||||
namespace Android {
|
||||
|
||||
class ANDROID_EXPORT AndroidExtraLibraryListModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AndroidExtraLibraryListModel(ProjectExplorer::Target *target,
|
||||
QObject *parent = nullptr);
|
||||
AndroidExtraLibraryListModel(ProjectExplorer::BuildSystem *buildSystem, QObject *parent);
|
||||
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent) const override;
|
||||
QModelIndex parent(const QModelIndex &child) const override;
|
||||
@@ -60,7 +57,7 @@ signals:
|
||||
private:
|
||||
void updateModel();
|
||||
|
||||
ProjectExplorer::Target *m_target;
|
||||
ProjectExplorer::BuildSystem *m_buildSystem;
|
||||
QStringList m_entries;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user