Changeset View
Changeset View
Standalone View
Standalone View
src/isotopetable/isotopeitem.cpp
Context not available. | |||||
56 | case bminus: | 56 | case bminus: | ||
---|---|---|---|---|---|
57 | b = QBrush(Qt::white); | 57 | b = QBrush(Qt::white); | ||
58 | break; | 58 | break; | ||
59 | case unknown: | ||||
60 | b = QBrush(Qt::darkGray); | ||||
61 | break; | ||||
59 | case stable: | 62 | case stable: | ||
60 | b = QBrush(Qt::lightGray); | 63 | b = QBrush(Qt::magenta); | ||
61 | break; | 64 | break; | ||
62 | default: | 65 | default: | ||
63 | b = QBrush(Qt::darkGray); | 66 | b = QBrush(Qt::darkGray); | ||
Context not available. | |||||
118 | if (isotope->alphalikeliness() > 60.0) { | 121 | if (isotope->alphalikeliness() > 60.0) { | ||
119 | return IsotopeItem::alpha; | 122 | return IsotopeItem::alpha; | ||
120 | } | 123 | } | ||
121 | if (isotope->betaminuslikeliness() > 60.0) { | 124 | if (isotope->betaminuslikeliness() > 60.0 || isotope->betaminusneutronlikeliness() > 60.0 || isotope->betaminusfissionlikeliness() > 60.0) { | ||
122 | return IsotopeItem::bminus; | 125 | return IsotopeItem::bminus; | ||
123 | } | 126 | } | ||
124 | if (isotope->betapluslikeliness() > 60.0) { | 127 | if (isotope->betapluslikeliness() > 60.0 || isotope->betaplusalphalikeliness() > 60.0 || isotope->betaplusalphalikeliness() > 60.0) { | ||
125 | return IsotopeItem::bminus; | 128 | return IsotopeItem::bplus; | ||
126 | } | 129 | } | ||
127 | if (isotope->eclikeliness() > 60.0) { | 130 | if (isotope->eclikeliness() > 60.0) { | ||
128 | return IsotopeItem::ec; | 131 | return IsotopeItem::ec; | ||
129 | } else { | 132 | } | ||
133 | if (!(isotope->halflife() > 0.0) && !(isotope->abundance().isEmpty())) { | ||||
130 | return IsotopeItem::stable; | 134 | return IsotopeItem::stable; | ||
135 | } else { | ||||
136 | return IsotopeItem::unknown; | ||||
131 | } | 137 | } | ||
132 | } | 138 | } | ||
133 | 139 | | |||
Context not available. |