QTfrontend/hwconsts.cpp.in
changeset 7258 722e8a0d89dc
parent 7130 fcab1fd02bc6
child 8090 38d9cc60b14c
equal deleted inserted replaced
7256:5b97b9946cde 7258:722e8a0d89dc
    70 bool haveServer = ${HAVE_NETSERVER};
    70 bool haveServer = ${HAVE_NETSERVER};
    71 bool isDevBuild = ${HW_DEV};
    71 bool isDevBuild = ${HW_DEV};
    72 
    72 
    73 int season = SEASON_NONE;
    73 int season = SEASON_NONE;
    74 int years_since_foundation = 0;
    74 int years_since_foundation = 0;
    75 
       
    76 QStandardItemModel * colorsModel;
       
    77 
       
    78 void hwConstsInit()
       
    79 {
       
    80     colorsModel = new QStandardItemModel();
       
    81 
       
    82     int i = 0;
       
    83     while(colors[i])
       
    84     {
       
    85         QStandardItem * item = new QStandardItem();
       
    86         item->setData(QColor(colors[i]));
       
    87         colorsModel->appendRow(item);
       
    88         ++i;
       
    89     }
       
    90 }