changeset 7681 | 26978d581070 |
parent 7260 | c3584a3ab730 |
child 7774 | 27f9b9362f47 |
child 7824 | 3df73ec7fcf2 |
--- a/QTfrontend/util/DataManager.cpp Sun Sep 09 14:45:21 2012 +0400 +++ b/QTfrontend/util/DataManager.cpp Sun Sep 09 15:37:10 2012 +0400 @@ -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])); + } +}