diff -r 46a91cbed8db -r 26978d581070 QTfrontend/util/DataManager.cpp --- 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])); + } +}