equal
deleted
inserted
replaced
33 setAutoFillBackground(true); |
33 setAutoFillBackground(true); |
34 |
34 |
35 mainLayout.setSpacing(1); |
35 mainLayout.setSpacing(1); |
36 mainLayout.setContentsMargins(4, 4, 4, 4); |
36 mainLayout.setContentsMargins(4, 4, 4, 4); |
37 |
37 |
38 availableColors.push_back(*color1); |
38 int i = 0; |
39 availableColors.push_back(*color2); |
39 while(colors[i]) |
40 availableColors.push_back(*color3); |
40 availableColors.push_back(*colors[i++]); |
41 availableColors.push_back(*color4); |
|
42 availableColors.push_back(*color5); |
|
43 availableColors.push_back(*color6); |
|
44 |
41 |
45 resetColors(); |
42 resetColors(); |
46 } |
43 } |
47 |
44 |
48 void FrameTeams::setInteractivity(bool interactive) |
45 void FrameTeams::setInteractivity(bool interactive) |
55 } |
52 } |
56 } |
53 } |
57 |
54 |
58 void FrameTeams::resetColors() |
55 void FrameTeams::resetColors() |
59 { |
56 { |
60 currentColor=availableColors.begin(); |
57 currentColor=availableColors.end() - 1; // ensure next color is the first one |
61 } |
58 } |
62 |
59 |
63 QColor FrameTeams::getNextColor() const |
60 QColor FrameTeams::getNextColor() const |
64 { |
61 { |
65 QList<QColor>::ConstIterator nextColor=currentColor; |
62 QList<QColor>::ConstIterator nextColor=currentColor; |