qt: Disable bus channels that are currently in use

This commit is contained in:
cold-brewed
2024-03-24 12:07:58 -04:00
parent 955297b9c4
commit 373fe0f258
10 changed files with 126 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
#include "qt_settings_bus_tracking.hpp"
class QString;
class QAbstractItemModel;
@@ -9,7 +10,7 @@ class SettingsBusTracking;
namespace Harddrives {
void populateBuses(QAbstractItemModel *model);
void populateRemovableBuses(QAbstractItemModel *model);
void populateBusChannels(QAbstractItemModel *model, int bus);
void populateBusChannels(QAbstractItemModel *model, int bus, SettingsBusTracking *sbt = nullptr);
void populateSpeeds(QAbstractItemModel *model, int bus);
QString BusChannelName(uint8_t bus, uint8_t channel);
inline SettingsBusTracking *busTrackClass = nullptr;