provide == and != for DialogButtons
This commit is contained in:
parent
c8789ccdbf
commit
dfe7f46bb7
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@ public:
|
|||
{}
|
||||
inline const ustring& label() const { return _label; }
|
||||
inline const bool& isDefault() const { return _default; }
|
||||
|
||||
bool operator==(const DialogButton &o) { return _label == o._label; }
|
||||
bool operator!=(const DialogButton &o) { return !(_label == o._label); }
|
||||
};
|
||||
|
||||
class MessageDialog : public Widget {
|
||||
|
|
Loading…
Reference in a new issue