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:
hjk
2020-04-01 08:31:00 +02:00
parent 47e576528e
commit d1173d2136
3 changed files with 20 additions and 23 deletions

View File

@@ -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;
};