MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / SyncthingModel

Method SyncthingModel

syncthingmodel/syncthingmodel.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace Data {
7
8SyncthingModel::SyncthingModel(SyncthingConnection &connection, QObject *parent)
9 : QAbstractItemModel(parent)
10 , m_connection(connection)
11 , m_brightColors(false)
12 , m_singleColumnMode(true)
13{
14 connect(&m_connection, &SyncthingConnection::newConfig, this, &SyncthingModel::handleConfigInvalidated);
15 connect(&m_connection, &SyncthingConnection::newConfigApplied, this, &SyncthingModel::handleNewConfigAvailable);
16
17 const auto &iconManager = IconManager::instance();
18 connect(&iconManager, &IconManager::statusIconsChanged, this, &SyncthingModel::handleStatusIconsChanged);
19 connect(&iconManager, &IconManager::forkAwesomeIconsChanged, this, &SyncthingModel::handleForkAwesomeIconsChanged);
20}
21
22const QVector<int> &SyncthingModel::colorRoles() const
23{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected