changeset 7687 | c73fd8cfa7c0 |
parent 7681 | 26978d581070 |
child 7774 | 27f9b9362f47 |
child 7824 | 3df73ec7fcf2 |
--- a/QTfrontend/util/DataManager.cpp Mon Aug 27 17:40:16 2012 +0200 +++ b/QTfrontend/util/DataManager.cpp Sun Sep 16 16:54:51 2012 +0200 @@ -207,3 +207,11 @@ m_themeModel->loadThemes(); emit updated(); } + +void DataManager::resetColors() +{ + for(int i = colorsModel()->rowCount() - 1; i >= 0; --i) + { + m_colorsModel->item(i)->setData(QColor(colors[i])); + } +}