Create button using MessageBoxStyle*/
| 136 | |
| 137 | /** Create button using MessageBoxStyle*/ |
| 138 | void setMessageButton(MessageBoxStyle _value) |
| 139 | { |
| 140 | clearButton(); |
| 141 | |
| 142 | std::vector<MessageBoxStyle> buttons = _value.getButtons(); |
| 143 | |
| 144 | for (const auto& info : buttons) |
| 145 | { |
| 146 | addButtonName(getButtonName(info)); |
| 147 | |
| 148 | mVectorButton.back()->_setInternalData(info); |
| 149 | |
| 150 | if (mVectorButton.size() == 1) |
| 151 | mInfoOk = info; |
| 152 | mInfoCancel = info; |
| 153 | } |
| 154 | |
| 155 | updateSize(); |
| 156 | } |
| 157 | |
| 158 | /** Set message style (button and icon)*/ |
| 159 | void setMessageStyle(MessageBoxStyle _value) |
nothing calls this directly
no test coverage detected