Mon, 31 Aug 2015 22:40:49 +0300
Change color config types into actual colors now that I can do that
#include <stdio.h> #include <QMetaObject> #include "hierarchyelement.h" #include "mainwindow.h" HierarchyElement::HierarchyElement (QObject* parent) : m_window (nullptr), m_config (nullptr) { if (parent) { while (parent->parent() != nullptr) parent = parent->parent(); m_window = qobject_cast<MainWindow*> (parent); } if (m_window == nullptr) { m_window = g_win; print ("WARNING: Hierarchy element instance %p should be in the hierarchy of a " "MainWindow but isn't.\n", this); } m_config = m_window->configBag(); }