fix(Colors): override colors at core creation

This commit is contained in:
Ronan Abhamon 2017-06-19 12:31:54 +02:00
parent af69ff5199
commit 2784afb6db
2 changed files with 7 additions and 0 deletions

View file

@ -34,6 +34,10 @@ using namespace std;
// =============================================================================
Colors::Colors (QObject *parent) : QObject(parent) {
QObject::connect(CoreManager::getInstance(), &CoreManager::coreCreated, this, &Colors::overrideColors);
}
void Colors::overrideColors () {
shared_ptr<linphone::Config> config = CoreManager::getInstance()->getCore()->getConfig();
const QMetaObject *info = metaObject();

View file

@ -120,6 +120,9 @@ signals:
void colorTzChanged (const QColor &color);
void colorTerrorChanged (const QColor &color);
private:
void overrideColors ();
};
// -----------------------------------------------------------------------------