aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android/androidextralibrarylistmodel.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-04-01 08:31:00 +0200
committerhjk <hjk@qt.io>2020-04-02 05:48:25 +0000
commitd1173d2136113abde43c93e9b7783507c266958e (patch)
tree69d8328662c3ae3b3df225000844cf024702d657 /src/plugins/android/androidextralibrarylistmodel.h
parent47e576528e4f61c1e387e7ee89bc6b18b7ce3d94 (diff)
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>
Diffstat (limited to 'src/plugins/android/androidextralibrarylistmodel.h')
-rw-r--r--src/plugins/android/androidextralibrarylistmodel.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/plugins/android/androidextralibrarylistmodel.h b/src/plugins/android/androidextralibrarylistmodel.h
index bbd21ce815..0856b32ce7 100644
--- a/src/plugins/android/androidextralibrarylistmodel.h
+++ b/src/plugins/android/androidextralibrarylistmodel.h
@@ -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;
};