MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / containerPaths

Method containerPaths

src/core/ThemeManager.cpp:1934–1951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1932}
1933
1934QStringList ThemeManager::containerPaths() const
1935{
1936 QStringList out;
1937 out.reserve(m_scopeByPath.size());
1938 std::function<void(const ThemeScope*)> walk = [&](const ThemeScope* s) {
1939 if (s == m_rootScope.get()) {
1940 out.append(QString());
1941 } else {
1942 out.append(s->path);
1943 }
1944 // Deterministic alphabetical order at each level.
1945 // std::map iterates in key order already — pass children
1946 // through directly.
1947 for (auto& kv : s->children) walk(kv.second.get());
1948 };
1949 walk(m_rootScope.get());
1950 return out;
1951}
1952
1953QColor ThemeManager::color(const QWidget* widget, const QString& token) const
1954{

Callers 2

refreshContainerComboMethod · 0.80
mainFunction · 0.80

Calls 3

getMethod · 0.80
walkFunction · 0.50
sizeMethod · 0.45

Tested by 1

mainFunction · 0.64