20 struct disabled: Base {
21 template<
typename... Args>
22 disabled(Args&&... args):
23 Base(std::forward<Args>(args)...)
28 bool isStateApplicable(
AView* view)
override {
29 return Base::isStateApplicable(view) && !*view->enabled();
33 Base::setupConnections(view, helper);
34 view->enabled().changed.clearAllConnectionsWith(helper.get());
static void connect(const Signal &signal, Object *object, Function &&function)
Connects signal to the slot of the specified object.
Definition AObject.h:65