provide == and != for DialogButtons

This commit is contained in:
Dana Jansens 2003-02-16 16:36:07 +00:00
parent c8789ccdbf
commit dfe7f46bb7

View file

@ -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 {