Allow custom path for adb in dashboard

This commit is contained in:
Patrick Nicolas
2025-04-17 19:35:31 +02:00
parent 28943c117f
commit 5b0182ed5f
5 changed files with 137 additions and 51 deletions
+3
View File
@@ -42,6 +42,7 @@ class adb : public QAbstractListModel
Q_PROPERTY(bool adbInstalled READ adbInstalled NOTIFY adbInstalledChanged)
bool m_adb_installed = false;
QString m_path;
std::vector<device> m_android_devices;
QCoro::Task<> on_poll_devices_timeout();
@@ -73,6 +74,8 @@ public:
QVariant data(const QModelIndex & index, int role) const override;
Q_INVOKABLE void setPath(QString path);
protected:
QHash<int, QByteArray> roleNames() const override;