QTfrontend/team.cpp
changeset 7258 722e8a0d89dc
parent 7254 aa4461ec7737
child 7313 162bc562335b
--- a/QTfrontend/team.cpp	Sun Jun 17 16:32:44 2012 +0200
+++ b/QTfrontend/team.cpp	Sun Jun 17 21:45:49 2012 +0400
@@ -26,6 +26,7 @@
 
 #include "team.h"
 #include "hwform.h"
+#include "DataManager.h"
 
 HWTeam::HWTeam(const QString & teamname) :
     QObject(0)
@@ -351,12 +352,12 @@
 
 QColor HWTeam::qcolor() const
 {
-    return colorsModel->item(m_color)->data().value<QColor>();
+    return DataManager::instance().colorsModel()->item(m_color)->data().value<QColor>();
 }
 
 void HWTeam::setColor(int color)
 {
-    m_color = color % colorsModel->rowCount();
+    m_color = color % DataManager::instance().colorsModel()->rowCount();
 }